14 #ifndef _INCLUDED_MPCODEC_H 15 #define _INCLUDED_MPCODEC_H 17 #include <os/OsStatus.h> 18 #include <utl/UtlBool.h> 33 #define CODEC_ENABLE_HANDSET_SPKR CODEC_ENABLE_SPKR1 34 #define CODEC_ENABLE_BASE_SPKR CODEC_ENABLE_SPKR2 35 #define CODEC_ENABLE_HEADSET_SPKR CODEC_ENABLE_SPKR3 36 #define CODEC_ENABLE_EXTERNAL_SPKR_MONO CODEC_ENABLE_SPKR4 37 #define CODEC_ENABLE_EXTERNAL_SPKR_STEREO CODEC_ENABLE_SPKR5 38 #define CODEC_ENABLE_EXTERNAL_SPKR (CODEC_ENABLE_SPKR4 | CODEC_ENABLE_SPKR5) 39 #define CODEC_ENABLE_RINGER_SPKR CODEC_ENABLE_SPKR6 42 #define START_VOLUME 60 43 #define MIC_GAIN_MIN 0 44 #define MIC_GAIN_MAX 100 46 extern OsStatus
MpCodecOpen(
int sampleRate,
int gain,
int volume);
MpCodecSpkrChoice
Definition: MpCodec.h:23
OsStatus MpCodec_getVolumeRange(int &low, int &high, int &nominal, int &stepsize, int &mute, int &splash, MpCodecSpkrChoice Choice)
Definition: MpCodec.cpp:356
UtlBoolean MpCodec_isHeadsetSpeakerOn(void)
the headset speaker
int MpCodec_getVolume(void)
OsStatus MpCodec_setVolume(int newvolume)
UtlBoolean MpCodec_isBaseSpeakerOn(void)
the speakerphone speaker
int MpCodec_getGain(void)
OsStatus MpCodecOpen(int sampleRate, int gain, int volume)
UtlBoolean MpCodec_isHandsetSpeakerOn(void)
the handset speaker
OsStatus MpCodec_setGain(int newgain)
OsStatus MpCodec_setInputMixerId(unsigned int newmixerid)
int MpCodec_getInputMixerId(void)