Click here to Skip to main content
15,888,259 members
Please Sign up or sign in to vote.
5.00/5 (2 votes)
See more:
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.)
Posted
Updated 12-Dec-11 12:57pm
v3
Comments
Albert Holguin 12-Dec-11 15:42pm    
Not sure what would cause this... have you tried placing the applicable code in a simple application just to see if you get the same issue outside of your main application?
Gene Pharr 12-Dec-11 16:35pm    
I have a simpler program than the actual applicaiton, but I don't yet have a reduction to the "Hello World" version of the problem. I can see that I'm going to have to do that...
[no name] 12-Dec-11 18:22pm    
Are you shure that encoders/decoders are installed correctly? From what to what you are converting?
I'm also programming such stuff and until now W7 was nice to my apps.
Gene Pharr 12-Dec-11 18:29pm    
I'm using acmFormatSuggest to put the conversion together... And it ALSO is reporting success. If the encoders weren't there, shouldn't that fail? (I have, in fact, seen acmFormatSuggest fail for such reasons. So I KNOW it does under some conditions. But it is not failing here.)
[no name] 12-Dec-11 19:03pm    
Is it possible to have code snippets? Sounds interessting to dive into.
Regards

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900