The meaning is that i have to decompress the file myself ?! |
(Assuming for the moment that the Waveform Audio Functions are the right way to go...)
Yes. In the sense that you have to get the required ACM codec from the Audio Compression Manager (ACM) and then use it to decode the ADPCM data to PCM format using acmStreamConvert before calling waveOutWrite (as modoran has already mentioned.)
You only have to write your own decompression code if you want to use a format for which there is no pre-existing ACM codec.
why the define WAVE_FORMAT_ADPCM exist |
Because the format exists?
how the sound card play adpcm ? |
If it doesn't support the format directly, it can't.
So you use the appropriate ACM codec to decompress to data to PCM and use this new data instead (as said above.)
And...
When you say "play ADPCM", are you talking about playing an ADPCM wav file? Or is this data coming from somewhere else?
Note that the Waveform Audio Functions are legacy. They have been superseded twice: first by DirectShow and more recently by Media Foundation.
Andy
PS You should consider changing the title of your thread to something more informative than "Help !" ?? See the
Edit Topic
button above the opening post.