00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef __AUDIO_OPTIONS_H__
00016 #define __AUDIO_OPTIONS_H__
00017
00018 #ifndef __FLIXENGINE2_H__
00019 # error "audio_options.h should only be included through flixengine2.h"
00020 #endif
00021
00032 typedef enum {
00033 Bitrate8kbps = 8,
00034 Bitrate16kbps = 16,
00035 Bitrate24kbps = 24,
00036 Bitrate32kbps = 32,
00037 Bitrate40kbps = 40,
00038 Bitrate48kbps = 48,
00039 Bitrate56kbps = 56,
00040 Bitrate64kbps = 64,
00041 Bitrate80kbps = 80,
00042 Bitrate96kbps = 96,
00043 Bitrate112kbps = 112,
00044 Bitrate128kbps = 128,
00045 Bitrate144kbps = 144,
00046 Bitrate160kbps = 160,
00047 Bitrate192kbps = 192,
00048 Bitrate224kbps = 224,
00049 Bitrate256kbps = 256,
00050 Bitrate320kbps = 320
00051 } FE2_AudioBitrates;
00052
00059 typedef enum {
00060 FlvAudioUncompressed = 0,
00061 FlvAudioMp3 = 2
00062 } FE2_FlvAudioFormat;
00063
00070 typedef enum {
00071 Hertz11025 = 11025,
00072 Hertz22050 = 22050,
00073 Hertz44100 = 44100
00074 } FE2_AudioSamplingrates;
00075
00076 #if defined(__cplusplus)
00077 extern "C" {
00078 #endif
00079
00096 FLIXENGINE_API on2sc audio_options_Reset(FLIX2HANDLE flix);
00097
00115 FLIXENGINE_API on2sc audio_options_Validate(FLIX2HANDLE flix);
00116
00133 FLIXENGINE_API on2sc audio_options_SetBitrate(FLIX2HANDLE flix,
00134 const FE2_AudioBitrates bitrate);
00135
00154 FLIXENGINE_API on2sc audio_options_GetBitrate(const FLIX2HANDLE flix,
00155 FE2_AudioBitrates* pBitrate);
00156
00172 FLIXENGINE_API on2sc audio_options_SetFlvAudioFormat(FLIX2HANDLE flix,
00173 const FE2_FlvAudioFormat format);
00174
00189 FLIXENGINE_API on2sc audio_options_GetFlvAudioFormat(const FLIX2HANDLE flix,
00190 FE2_FlvAudioFormat* pFormat);
00191
00214 FLIXENGINE_API on2sc audio_options_SetSamplingrate(FLIX2HANDLE flix,
00215 const FE2_AudioSamplingrates samplingrate);
00216
00233 FLIXENGINE_API on2sc audio_options_GetSamplingrate(const FLIX2HANDLE flix,
00234 FE2_AudioSamplingrates* pSamplingrate);
00235
00258 FLIXENGINE_API on2sc audio_options_SetStereo(FLIX2HANDLE flix, const on2bool stereo);
00259
00277 FLIXENGINE_API on2sc audio_options_GetStereo(const FLIX2HANDLE flix,
00278 on2bool* pStereo);
00279
00280 #if defined(__cplusplus)
00281 }
00282 #endif
00283
00285 #endif