17 #include <os/OsDefs.h> 18 #include <os/OsStatus.h> 19 #include <utl/UtlString.h> 25 int gcd(
int a,
int b);
30 int reSample(
char * charBuffer,
int numBytes,
int currentSampleRate,
int newSampleRate);
34 int mergeChannels(
char * charBuffer,
int Size,
int nTotalChannels);
39 #ifndef DISABLE_STREAM_PLAYER 42 OsStatus
mergeWaveUrls(UtlString rSourceUrls[], UtlString &rDestFile);
45 OsStatus
mergeWaveFiles(UtlString rSourceFiles[], UtlString &rDestFile);
47 #endif // DISABLE_STREAM_PLAYER void InitG711Tables()
Definition: MpAudioUtils.cpp:499
size_t DecompressG711ALaw(MpAudioSample *buffer, size_t length)
Definition: MpAudioUtils.cpp:549
int reSample(char *charBuffer, int numBytes, int currentSampleRate, int newSampleRate)
Downsamples from current rate to new rate. Doesn't upsample yet.
Definition: MpAudioUtils.cpp:75
void ConvertUnsigned8ToSigned16(unsigned char *in_buffer, MpAudioSample *out_buffer, int numBytesToConvert)
Definition: MpAudioUtils.cpp:52
MpAudioSample MuLawDecode2(unsigned char ulaw)
Definition: MpAudioUtils.cpp:538
OsStatus mergeWaveUrls(UtlString rSourceUrls[], UtlString &rDestFile)
Works with 16bit wavs only. (for now)
Definition: MpAudioUtils.cpp:269
OsStatus mergeWaveFiles(UtlString rSourceFiles[], UtlString &rDestFile)
Works with 16bit wavs only. (for now)
Definition: MpAudioUtils.cpp:395
int16_t MpAudioSample
Definition: MpTypes.h:44
int mergeChannels(char *charBuffer, int Size, int nTotalChannels)
Merges two or more channels into one.
Definition: MpAudioUtils.cpp:105
size_t DecompressG711MuLaw(MpAudioSample *buffer, size_t length)
Definition: MpAudioUtils.cpp:514
int gcd(int a, int b)
Returns the GCD of a and b.
Definition: MpAudioUtils.cpp:60
unsigned char ALawEncode2(MpAudioSample s)
Definition: MpAudioUtils.cpp:559
unsigned char MuLawEncode2(MpAudioSample s)
Definition: MpAudioUtils.cpp:526
MpAudioSample ALawDecode2(unsigned char alaw)
Definition: MpAudioUtils.cpp:570