Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The following list shows the two formats that the ACM codecs must recognize.
- PCM 16bits at either 8 or 16 KHz
- The particular format the codec handles (for example, G.723.1 or G.729)
Both of these formats are defined by a WAVEFORMATEX structure. Therefore, all fields in the two recognized WAVEFORMATEX structures remain constant.
The following code example shows typical definition for the recognized WAVEFORMATEX structures.
WAVEFORMATEX FormatPCM16 =
{
WAVE_FORMAT_PCM, // wFormatTag
1, // nChannels
8000, // nSamplesPerSec
16000, // nAvgBytesPerSec
2, // nBlockAlign
16, // wBitsPerSample
2 // cbSize
};
WAVEFORMATEX FormatG711 =
{
WAVE_FORMAT_MSG711, // wFormatTag
1, // nChannels
8000, // nSamplesPerSec
800, // nAvgBytesPerSec
4, // nBlockAlign
0, // wBitsPerSample
2 // cbSize
};
See Also
Send Feedback on this topic to the authors