MixAudioConfigParamsMP3

MixAudioConfigParamsMP3 — Audio configuration parameters for MP3 audio.

Synopsis


#include <mixacpmp3.h>

                    MixAudioConfigParamsMP3;
MixAudioConfigParamsMP3 * mix_acp_mp3_new               (void);
MixAudioConfigParamsMP3 * mix_acp_mp3_ref               (MixAudioConfigParamsMP3 *mix);
#define             mix_acp_mp3_unref                   (obj)
#define             MIX_ACP_MP3_CRC                     (obj)
#define             MIX_ACP_MP3_MPEG_FORMAT             (obj)
#define             MIX_ACP_MP3_MPEG_LAYER              (obj)

Description

A data object which stores audio specific parameters for MP3 audio.

Additional parameters must be set in the parent object MixAudioConfigParams

Details

MixAudioConfigParamsMP3

typedef struct {
  MixAudioConfigParams parent;

  /* Audio Format Parameters */
  gboolean CRC;
  gint MPEG_format;
  gint MPEG_layer;
} MixAudioConfigParamsMP3;

MI-X Audio Parameter object for MP3 Audio.

MixAudioConfigParams parent;

parent.

gboolean CRC;

CRC. See MIX_ACP_MP3_CRC

gint MPEG_format;

OptionalMPEG format of the mpeg audio. See MIX_ACP_MP3_MPEG_FORMAT

gint MPEG_layer;

OptionalMPEG layer of the mpeg audio. See MIX_ACP_MP3_MPEG_LAYER

mix_acp_mp3_new ()

MixAudioConfigParamsMP3 * mix_acp_mp3_new               (void);

Use this method to create new instance of MixAudioConfigParamsMP3

returns :

A newly allocated instance of MixAudioConfigParamsMP3

mix_acp_mp3_ref ()

MixAudioConfigParamsMP3 * mix_acp_mp3_ref               (MixAudioConfigParamsMP3 *mix);

Add reference count.

mix :

object to add reference

returns :

the MixAudioConfigParamsMP3 instance where reference count has been increased.

mix_acp_mp3_unref()

#define mix_acp_mp3_unref(obj) mix_params_unref(MIX_PARAMS(obj))

Decrement reference count of the object.

obj :

object to unref.

MIX_ACP_MP3_CRC()

#define MIX_ACP_MP3_CRC(obj) (MIX_AUDIOCONFIGPARAMSMP3(obj)->CRC)

MixAudioConfigParamMP3.CRC accessor.

Optional

obj :

MixAudioConfigParamsMP3 object.

MIX_ACP_MP3_MPEG_FORMAT()

#define MIX_ACP_MP3_MPEG_FORMAT(obj) (MIX_AUDIOCONFIGPARAMSMP3(obj)->MPEG_format)

MixAudioConfigParamMP3.MPEG_format accessor.

Supported MPEG format should be 1 or 2.

obj :

MixAudioConfigParamsMP3 object.

MIX_ACP_MP3_MPEG_LAYER()

#define MIX_ACP_MP3_MPEG_LAYER(obj) (MIX_AUDIOCONFIGPARAMSMP3(obj)->MPEG_layer)

MixAudioConfigParamMP3.MPEG_layer accessor.

Supported layer should be 1, 2, or 3.

obj :

MixAudioConfigParamsMP3 object.