MixAudio Reference Manual | ||||
---|---|---|---|---|
Top | Description |
#include <mixacpwma.h> enum MixAudioWMAVersion; MixAudioConfigParamsWMA; MixAudioConfigParamsWMA * mix_acp_wma_new (void); MixAudioConfigParamsWMA * mix_acp_wma_ref (MixAudioConfigParamsWMA *mix); #define mix_acp_wma_unref (obj) #define MIX_ACP_WMA_CHANNEL_MASK (obj) #define MIX_ACP_WMA_FORMAT_TAG (obj) #define MIX_ACP_WMA_BLOCK_ALIGN (obj) #define MIX_ACP_WMA_ENCODE_OPT (obj) #define MIX_ACP_WMA_PCM_BIT_WIDTH (obj) MixAudioWMAVersion mix_acp_wma_get_version (MixAudioConfigParamsWMA *obj); MIX_RESULT mix_acp_wma_set_version (MixAudioConfigParamsWMA *obj, MixAudioWMAVersion ver);
A data object which stores audio specific parameters for WMA.
In Moorestown, only WMA2 is supported.
Additional parameters must be set in the parent object MixAudioConfigParams
typedef enum { MIX_AUDIO_WMA_VUNKNOWN, MIX_AUDIO_WMA_V9, MIX_AUDIO_WMA_V10, MIX_AUDIO_WMA_V10P, MIX_AUDIO_WMA_LAST } MixAudioWMAVersion;
WMA version.
typedef struct { MixAudioConfigParams parent; /* Audio Format Parameters */ guint32 channel_mask; guint16 format_tag; guint16 block_align; guint16 wma_encode_opt;/* Encoder option */ guint8 pcm_bit_width; /* source pcm bit width */ MixAudioWMAVersion wma_version; } MixAudioConfigParamsWMA;
MI-X Audio Parameter object
MixAudioConfigParams |
parent. |
guint32 |
Channel Mask. See MIX_ACP_WMA_CHANNEL_MASK |
guint16 |
Format tag. See MIX_ACP_WMA_FORMAT_TAG |
guint16 |
|
guint16 |
Encoder option. See MIX_ACP_WMA_ENCODE_OPT |
guint8 |
Source pcm bit width. See MIX_ACP_WMA_PCM_BIT_WIDTH |
MixAudioWMAVersion |
WMA version. See mix_acp_wma_set_version |
MixAudioConfigParamsWMA * mix_acp_wma_new (void);
Use this method to create new instance of MixAudioConfigParamsWMA
|
A newly allocated instance of MixAudioConfigParamsWMA |
MixAudioConfigParamsWMA * mix_acp_wma_ref (MixAudioConfigParamsWMA *mix);
Add reference count.
|
object to add reference |
|
the MixAudioConfigParamsWMA instance where reference count has been increased. |
#define mix_acp_wma_unref(obj) mix_params_unref(MIX_PARAMS(obj))
Decrement reference count of the object.
|
object to unref. |
#define MIX_ACP_WMA_CHANNEL_MASK(obj) (MIX_AUDIOCONFIGPARAMSWMA(obj)->channel_mask)
MixAudioConfigParamWMA.channel_mask accessor.
Channel mask must be one of the following:
4: For single (1) channel output.
3: For stereo (2) channels output.
Only 1 or 2 output channels are supported.
|
MixAudioConfigParamsWMA object |
#define MIX_ACP_WMA_FORMAT_TAG(obj) (MIX_AUDIOCONFIGPARAMSWMA(obj)->format_tag)
MixAudioConfigParamWMA.format_tag accessor.
In Moorestown, only value 0x0161 combined with use of MIX_AUDIO_WMA_V9 is supported.
|
MixAudioConfigParamsWMA object |
#define MIX_ACP_WMA_BLOCK_ALIGN(obj) (MIX_AUDIOCONFIGPARAMSWMA(obj)->block_align)
MixAudioConfigParamWMA.block_align accessor.
Block alignment indicates packet size. Available from ASF Header.
|
MixAudioConfigParamsWMA object |
#define MIX_ACP_WMA_ENCODE_OPT(obj) (MIX_AUDIOCONFIGPARAMSWMA(obj)->wma_encode_opt)
MixAudioConfigParamWMA.wma_encode_opt accessor.
Encoder option available from ASF header.
|
MixAudioConfigParamsWMA object |
#define MIX_ACP_WMA_PCM_BIT_WIDTH(obj) (MIX_AUDIOCONFIGPARAMSWMA(obj)->pcm_bit_width)
MixAudioConfigParamWMA.pcm_bit_width accessor.
Source pcm bit width available from ASF Header.
|
MixAudioConfigParamsWMA object |
MixAudioWMAVersion mix_acp_wma_get_version (MixAudioConfigParamsWMA *obj);
Get WMA Version.
|
MixAudioConfigParamsWMA object |
|
MixAudioWMAVersion |
MIX_RESULT mix_acp_wma_set_version (MixAudioConfigParamsWMA *obj, MixAudioWMAVersion ver);
Set WMA Version.
In Moorestown, only MIX_AUDIO_WMA_V9 is supported
|
MixAudioConfigParamsWMA object |
|
MixAudioWMAVersion to set. |
|
MIX_RESULT. |