This project has moved and is read-only. For the latest updates, please go here.

Mp3 Streaming Issue

Oct 13, 2011 at 5:10 PM

I'm having trouble with a particular card that is set to 

 <PCMBits>24</PCMBits>            <PCMSampleRate>48000</PCMSampleRate>

Calling IWavePlayer.Init  with the BufferedWaveProvider or VolumeWaveProvider16 ( understandably this one wont work )  causes an exception in 

ResamplerDmoStream Unsupported Output Stream format. 


My understanding is the kernel should be able to handle the mixing , so I'm at a loss regarding what is wrong. 


Anyone have any idea how to handle this ? Kinda desperate , we've put alot of time into making things work , and testing to find this late in the game. 

Thanks in advance !



Oct 17, 2011 at 10:38 AM

I think it is the bit depth that is being rejected. Have you tried this with the latest code in source control?

Oct 17, 2011 at 3:00 PM

Thx for the reply It was the WASPAPI IWavePlayer. First I had an issue with the VolumeWaveProvider16 , so removed it ( since we don't need volume control our device is 'line out')  and used the BufferedWaveProvider. Then a problem arose with the ResamplerDmoStream(IWaveProvider inputProvider, WaveFormat outputFormat) constructor. Not fully understanding the issue I dump wasapi for dsound. Seemed to make everything good to go. Strange though the other night I was testing and now there's a strange crakling or popping. Very odd and only noticable on a decent audio system.


Any ideas or suggestions would be awesome, we have to release in 2 weeks and I'd hate to abandon the API.





Oct 17, 2011 at 3:37 PM

If you can dump your audio to a WAV file using WAV File Writer instead of playing it, then you can listen to the WAV file and see whether the crackling is introduced in the samples generated, or by the playback path