I have an audio application that works just fine on XP.
But on Windows 7, acmStreamConvert malfunctions and trashes all of it's conversion results.
The bytestream in the returned converted buffer is nothing but "BF C5" over and over again.
I *AM* checking the return value of the call to acmStreamConvert, and it's zero on all calls.
I am converting Format 1, BitsPerSample 16, SamplesPerSecond 24000, Chans 2, Alignment 4 into Format 7, BitsPerSample 8, SamplesPerSecond 24000, Chans 2, Alignment 2.
Specifically: I start with acmFormatSuggest, wanting a WAVE_FORMAT_PCM (Format 7) result, from the Format 1, BitsPerSample 16, SamplesPerSecond 24000, Chans 2, Alignment 4 base format I know the device will open.
I then open waveInOpen with the format resulting from acmFormatSuggest.
I then perform an acmStreamOpen.
And then an acmStreamSize.
And then I call acmStreamPrepareHeader.
Amd then ... I stuff some buffers into the wave device and start waiting on them to come back.
The callback catches the buffers from the wave device and feeds them to acmStreamConvert, where the problem occurs.
Can anyone offer insight? Please?
(I am baffled.)