acmFormatSuggest() function question.
Posted on 1998-02-18
I'm making a routine to convert a compressed WAV file into PCM WAV.
I've got the complete WAVEFORMATEX including extra data after cbsize loaded and I'm calling acmFormatSuggest to have it suggest a valid PCM format to which the compressed format can be decompressed.
However, acmFormatSuggest is returning MMSYSERR_NODRIVER. If I call it again w/o re-loading my program it returns success. However, the first call always fails w/MMSYSERR_NODRIVER.
Here's my parms to acmFormatSuggest:
ptr to compressed wave file's WAVEFORMATEX,
ptr to WAVEFORMATEX (all zero's except for wFormatTag which = WAVE_FORMAT_PCM),
size of WAVEFORMATEX,
How come it's failing on my first try?