(Page 37 of 41 in this chapter) Version
typedef struct
{
DWORD size;
WORD format;
WORD nchannels;
DWORD samplespersec;
DWORD datarate;
WORD blocksize;
DWORD bitspersample;
} VCE_WAVE_INFO;
/*
* Add 11khz 8 bit stereo PCM encoding to the WAVE info table.
* The encoding value is passed in.
*/
#define WAVE_FORMAT_PCM 1 /* As defined in mmreg.h */
DWORD myAdd11khzStereo(CTAHD ctahd, unsigned encoding)
{
VCE_WAVE_INFO waveinfo;
waveinfo.size = sizeof waveinfo ;
waveinfo.format = WAVE_FORMAT_PCM;
waveinfo.nchannels = 2; /* stereo */
waveinfo.samplespersec = 11025;
waveinfo.datarate = 22050; /* bytes per second */
waveinfo.blocksize = 2; /* 2 8-bit channels */
waveinfo.bitspersample = 8;
return vceSetWaveInfo(ctahd, encoding, &waveinfo);
}
(Page 37 of 41 in this chapter) Version