MixAudio Reference Manual | ||||
---|---|---|---|---|
Top | Description |
MixAudioConfigParamsAACMixAudioConfigParamsAAC — Audio configuration parameters for AAC-LC, HEAAC v1, and HEAAC v2 audio format. |
#include <mixacpaac.h> enum MixAACBitrateType; enum MixAACBitstreamFormt; enum MixAACProfile; enum MixAACMpegID; MixAudioConfigParamsAAC; MixAudioConfigParamsAAC * mix_acp_aac_new (void); MixAudioConfigParamsAAC * mix_acp_aac_ref (MixAudioConfigParamsAAC *mix); #define mix_acp_aac_unref (obj) MIX_RESULT mix_acp_aac_set_mpeg_id (MixAudioConfigParamsAAC *obj, MixAACMpegID mpegid); MixAACMpegID mix_acp_aac_get_mpeg_id (MixAudioConfigParamsAAC *obj); #define MIX_ACP_AAC_CRC (obj) MIX_RESULT mix_acp_aac_set_aot (MixAudioConfigParamsAAC *obj, guint aot); guint mix_acp_aac_get_aot (MixAudioConfigParamsAAC *obj); #define MIX_ACP_AAC_SBR_FLAG (obj) #define MIX_ACP_AAC_PS_FLAG (obj) #define MIX_ACP_AAC_PCE_FLAG (obj) #define MIX_ACP_AAC_SAMPLE_RATE (obj) #define MIX_ACP_AAC_CHANNELS (obj) MixAACBitstreamFormt mix_acp_aac_get_bit_stream_format (MixAudioConfigParamsAAC *obj); MIX_RESULT mix_acp_aac_set_bit_stream_format (MixAudioConfigParamsAAC *obj, MixAACBitstreamFormt bit_stream_format); MixAACProfile mix_acp_aac_get_aac_profile (MixAudioConfigParamsAAC *obj); MIX_RESULT mix_acp_aac_set_aac_profile (MixAudioConfigParamsAAC *obj, MixAACProfile aac_profile); MixAACBitrateType mix_acp_aac_get_bit_rate_type (MixAudioConfigParamsAAC *obj); MIX_RESULT mix_acp_aac_set_bit_rate_type (MixAudioConfigParamsAAC *obj, MixAACBitrateType bit_rate_type);
A data object which stores audio specific parameters for the following formats:
Additional parameters must be set in the parent object MixAudioConfigParams
typedef enum { MIX_AAC_BR_NULL=-1, MIX_AAC_BR_CONSTANT=0, MIX_AAC_BR_VARIABLE, MIX_AAC_BR_LAST } MixAACBitrateType;
Types of bitrate in AAC.
typedef enum { MIX_AAC_BS_NULL=-1, MIX_AAC_BS_ADTS=0, MIX_AAC_BS_ADIF, MIX_AAC_BS_RAW, MIX_AAC_BS_LAST } MixAACBitstreamFormt;
AAC bitstream format.
typedef enum { MIX_AAC_PROFILE_NULL=-1, MIX_AAC_PROFILE_MAIN=0, MIX_AAC_PROFILE_LC, MIX_AAC_PROFILE_SSR, MIX_AAC_PROFILE_LAST } MixAACProfile;
AAC profiles definitions.
typedef enum { MIX_AAC_MPEG_ID_NULL=-1, MIX_AAC_MPEG_2_ID = 0, MIX_AAC_MPEG_4_ID = 1, MIX_AAC_MPEG_LAST } MixAACMpegID;
AAC MPEG ID.
typedef struct { MixAudioConfigParams parent; /* Audio Format Parameters */ MixAACMpegID MPEG_id; MixAACBitstreamFormt bit_stream_format; MixAACProfile aac_profile; guint aot; guint aac_sample_rate; guint aac_channels; MixAACBitrateType bit_rate_type; gboolean CRC; guint sbrPresentFlag; guint psPresentFlag; gboolean pce_present; gint8 syntc_id[2]; gint8 syntc_tag[2]; gint num_syntc_elems; } MixAudioConfigParamsAAC;
MixAudio Parameter object
MixAudioConfigParams |
parent. |
MixAACMpegID |
MPEG ID. See mix_acp_aac_set_mpeg_id |
MixAACBitstreamFormt |
Bitstream format. See mix_acp_aac_set_bit_stream_format. |
MixAACProfile |
AAC profile. See mix_acp_aac_set_aac_profile. |
guint |
Audio object type. See mix_acp_aac_set_aot |
guint |
See MIX_ACP_AAC_SAMPLE_RATE macro. |
guint |
See MIX_ACP_AAC_CHANNELS macro. |
MixAACBitrateType |
Bitrate type. See mix_acp_aac_set_bit_rate_type |
gboolean |
CRC check 0:disable, 1:enable. |
guint |
See MIX_ACP_AAC_SBR_FLAG macro. |
guint |
See MIX_ACP_AAC_PS_FLAG macro. |
gboolean |
Not Used. See MIX_ACP_AAC_PCE_FLAG |
gint8 |
Not Used. 0 for ID_SCE(Dula Mono), -1 for raw. |
gint8 |
Not Used. -1 for raw. 0-16 for rest of the streams. |
gint |
Not Used. Number of syntatic elements. |
MixAudioConfigParamsAAC * mix_acp_aac_new (void);
Use this method to create new instance of MixAudioConfigParamsAAC
|
A newly allocated instance of MixAudioConfigParamsAAC |
MixAudioConfigParamsAAC * mix_acp_aac_ref (MixAudioConfigParamsAAC *mix);
Add reference count.
|
object to add reference |
|
the MixAudioConfigParamsAAC instance where reference count has been increased. |
#define mix_acp_aac_unref(obj) mix_params_unref(MIX_PARAMS(obj))
Decrement reference count of the object.
|
object to unref. |
MIX_RESULT mix_acp_aac_set_mpeg_id (MixAudioConfigParamsAAC *obj, MixAACMpegID mpegid);
Configure decoder to treat audio as MPEG 2 or MPEG 4.
|
MixAudioConfigParamsAAC |
|
MPEG ID to set. |
|
MIX_RESULT |
MixAACMpegID mix_acp_aac_get_mpeg_id (MixAudioConfigParamsAAC *obj);
Retrieve currently configured mpeg id value.
|
MixAudioConfigParamsAAC object |
|
MPEG ID. |
#define MIX_ACP_AAC_CRC(obj) (MIX_AUDIOCONFIGPARAMSAAC(obj)->CRC)
MixAudioConfigParamAAC.CRC accessor.
|
MixAudioConfigParamsAAC object. |
MIX_RESULT mix_acp_aac_set_aot (MixAudioConfigParamsAAC *obj, guint aot);
Audio Object Type for the MPEG-4 audio stream. Valid value are:
2 - for AAC-LC
5 - for SBR
Method returns MIX_RESULT_NOT_SUPPORTED for not supported value.
|
MixAudioConfigParamsAAC |
|
Audio Object Type. |
guint mix_acp_aac_get_aot (MixAudioConfigParamsAAC *obj);
To retrieve currently configured audio object type.
|
MixAudioConfigParamsAAC |
|
Pointer to receive the Audio Object Type. |
|
Currently configured audio object type. Or 0 if not yet specified. |
#define MIX_ACP_AAC_SBR_FLAG(obj) (MIX_AUDIOCONFIGPARAMSAAC(obj)->sbrPresentFlag)
MixAudioConfigParamAAC.sbrPresentFlag accessor.
Applicable only when bit_stream_format
==MIX_AAC_BS_RAW. Indicates whether SBR data is present.
0: Absent
1: Present
-1 (0xffffffff): indicates implicit signalling.
|
MixAudioConfigParamsAAC object |
#define MIX_ACP_AAC_PS_FLAG(obj) (MIX_AUDIOCONFIGPARAMSAAC(obj)->psPresentFlag)
MixAudioConfigParamAAC.psPresentFlag accessor.
Applicable only when bit_stream_format
==MIX_AAC_BS_RAW. Indicates whether PS data is present.
0: Absent
1: Present
-1 (0xffffffff): indicates implicit signalling.
|
MixAudioConfigParamsAAC object |
#define MIX_ACP_AAC_PCE_FLAG(obj) (MIX_AUDIOCONFIGPARAMSAAC(obj)->pce_present)
MixAudioConfigParamAAC.pce_present accessor.
Applicable only when bit_stream_format
==MIX_AAC_BS_RAW. Indicates PCE data presence.
1:present
0:absent.
Not Used on Moorestown.
|
MixAudioConfigParamsAAC object. |
#define MIX_ACP_AAC_SAMPLE_RATE(obj) (MIX_AUDIOCONFIGPARAMSAAC(obj)->aac_sample_rate)
MixAudioConfigParamAAC.aac_sample_rate accessor.
Plain AAC decoder operating sample rate. Which could be different from the output sampling rate with HE AAC v1 and v2.
|
MixAudioConfigParamsAAC object. |
#define MIX_ACP_AAC_CHANNELS(obj) (MIX_AUDIOCONFIGPARAMSAAC(obj)->aac_channels)
MixAudioConfigParamAAC.aac_channels accessor.
Indicates the number of output channels used by AAC decoder before SBR or PS tools are applied.
|
MixAudioConfigParamsAAC |
MixAACBitstreamFormt mix_acp_aac_get_bit_stream_format (MixAudioConfigParamsAAC *obj);
Return the bitstream format currently configured.
|
MixAudioConfigParamsAAC |
|
MixAACBitstreamFormt |
MIX_RESULT mix_acp_aac_set_bit_stream_format (MixAudioConfigParamsAAC *obj, MixAACBitstreamFormt bit_stream_format);
Set the type of bitstream format as specified in MixAACBitstreamFormt.
|
MixAudioConfigParamsAAC |
|
Bit stream format. |
|
MIX_RESULT |
MixAACProfile mix_acp_aac_get_aac_profile (MixAudioConfigParamsAAC *obj);
Retrieve the AAC profile currently configured.
|
MixAudioConfigParamsAAC |
|
MixAACProfile |
MIX_RESULT mix_acp_aac_set_aac_profile (MixAudioConfigParamsAAC *obj, MixAACProfile aac_profile);
Configure AAC profile for current session.
Only MIX_AAC_PROFILE_LC is supported in Moorestown.
|
MixAudioConfigParamsAAC |
|
AAC profile to set. |
|
MIX_RESULT |
MixAACBitrateType mix_acp_aac_get_bit_rate_type (MixAudioConfigParamsAAC *obj);
Retrieve the bit rate type currently configured.
|
MixAudioConfigParamsAAC |
|
MixAACBitrateType |
MIX_RESULT mix_acp_aac_set_bit_rate_type (MixAudioConfigParamsAAC *obj, MixAACBitrateType bit_rate_type);
Set the bit rate type used.
|
MixAudioConfigParamsAAC |
|
Bit rate type to set. |
|
MIX_RESULT |