I'm trying to build a custom recording app with the waveaudio components. I got the basics up and running in no time. Now I want to save the wave in a non-PCM format like a-law or gsm 6.10 but don't know how.
Ideally, I'd like to provide the user with a combobox for choosing the codec and maybe another combobox for choosing the format. Much like the standard Windows soundrecorder actually. I think I have to use ConvertTo but I'm stuck at the PWaveFormatEx stuff.
How to get a list of available codecs/formats? I think the real answer is somewhere in the depths of MSDN
but I was kind of hoping not having to go there... If someone could point out some example or tutorial code I'd be very happy.