MixAudioConfigParamsWMA

MixAudioConfigParamsWMA — Audio parameters for WMA audio.

Synopsis


#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);

Description

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

Details

enum MixAudioWMAVersion

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.

MIX_AUDIO_WMA_VUNKNOWN

WMA version undefined.

MIX_AUDIO_WMA_V9

WMA 9

MIX_AUDIO_WMA_V10

Not Supported WMA 10

MIX_AUDIO_WMA_V10P

Not Supported WMA 10 Pro

MIX_AUDIO_WMA_LAST

last entry.

MixAudioConfigParamsWMA

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;

parent.

guint32 channel_mask;

Channel Mask. See MIX_ACP_WMA_CHANNEL_MASK

guint16 format_tag;

Format tag. See MIX_ACP_WMA_FORMAT_TAG

guint16 block_align;

guint16 wma_encode_opt;

Encoder option. See MIX_ACP_WMA_ENCODE_OPT

guint8 pcm_bit_width;

Source pcm bit width. See MIX_ACP_WMA_PCM_BIT_WIDTH

MixAudioWMAVersion wma_version;

WMA version. See mix_acp_wma_set_version

mix_acp_wma_new ()

MixAudioConfigParamsWMA * mix_acp_wma_new               (void);

Use this method to create new instance of MixAudioConfigParamsWMA

returns :

A newly allocated instance of MixAudioConfigParamsWMA

mix_acp_wma_ref ()

MixAudioConfigParamsWMA * mix_acp_wma_ref               (MixAudioConfigParamsWMA *mix);

Add reference count.

mix :

object to add reference

returns :

the MixAudioConfigParamsWMA instance where reference count has been increased.

mix_acp_wma_unref()

#define mix_acp_wma_unref(obj) mix_params_unref(MIX_PARAMS(obj))

Decrement reference count of the object.

obj :

object to unref.

MIX_ACP_WMA_CHANNEL_MASK()

#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.

obj :

MixAudioConfigParamsWMA object

MIX_ACP_WMA_FORMAT_TAG()

#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.

obj :

MixAudioConfigParamsWMA object

MIX_ACP_WMA_BLOCK_ALIGN()

#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.

obj :

MixAudioConfigParamsWMA object

MIX_ACP_WMA_ENCODE_OPT()

#define MIX_ACP_WMA_ENCODE_OPT(obj) (MIX_AUDIOCONFIGPARAMSWMA(obj)->wma_encode_opt)

MixAudioConfigParamWMA.wma_encode_opt accessor.

Encoder option available from ASF header.

obj :

MixAudioConfigParamsWMA object

MIX_ACP_WMA_PCM_BIT_WIDTH()

#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.

obj :

MixAudioConfigParamsWMA object

mix_acp_wma_get_version ()

MixAudioWMAVersion  mix_acp_wma_get_version             (MixAudioConfigParamsWMA *obj);

Get WMA Version.

obj :

MixAudioConfigParamsWMA object

returns :

MixAudioWMAVersion

mix_acp_wma_set_version ()

MIX_RESULT          mix_acp_wma_set_version             (MixAudioConfigParamsWMA *obj,
                                                         MixAudioWMAVersion ver);

Set WMA Version.

In Moorestown, only MIX_AUDIO_WMA_V9 is supported

obj :

MixAudioConfigParamsWMA object

ver :

MixAudioWMAVersion to set.

returns :

MIX_RESULT.