Archived from groups: microsoft.public.pocketpc.multimedia (More info?)
I get my recording application working with a GSM codec with 8KHZ frequency, but i cannot get it working with any other frequency. Anyone out there please please help me out! The following is the wave format struct i passed in: // 8KHZ -- this works pgsmwavefmt.wfx.wFormatTag = 0x0031; pgsmwavefmt.wfx.nChannels = 1; pgsmwavefmt.wfx.nSamplesPerSec = 8000; pgsmwavefmt.wfx.nAvgBytesPerSec = 1625; pgsmwavefmt.wfx.nBlockAlign = 65; pgsmwavefmt.wfx.wBitsPerSample = 0; pgsmwavefmt.wfx.cbSize = 2; //Double word cbsize contains wSamplesPerBlock pgsmwavefmt.wfx.wSamplePerBlock = 320; // // 11.025 KHZ -- this doesnt work // gives me a incorrect format error pgsmwavefmt.wfx.wFormatTag = 0x0031; pgsmwavefmt.wfx.nChannels = 1; pgsmwavefmt.wfx.nSamplesPerSec = 11025; pgsmwavefmt.wfx.nAvgBytesPerSec = 2239; pgsmwavefmt.wfx.nBlockAlign = 65; pgsmwavefmt.wfx.wBitsPerSample = 0; pgsmwavefmt.wfx.cbSize = 2; //Double word cbsize contains wSamplesPerBlock pgsmwavefmt.wfx.wSamplePerBlock = 320;