Play PCM data in .NET Framework 2?

I have a stream of compressed u-Law PCM data that I retrieve from the camera, do I need to play this from the columns? Does anyone know how? I tried to decode u-Law into regular WAV data and then use SoundPlayer, but it never works! Does SoundPlayer always support PCM data only?

I know that sounds normal because I saved it in a file (using the special createWavHeader method) and iTunes can play it.

+2
c # audio wav pcm
source share
1 answer

Windows comes with an ACM codec to convert u-law to PCM. You can use NAudio and use WaveFileReader and WaveFormatConversionStream to get a PCM stream that you can easily play.

+3
source share

All Articles