Quantcast
Channel: NAudio
Viewing all articles
Browse latest Browse all 5831

New Post: NAUDIO PlayBack Problem

$
0
0

Hi,

I am using NAudio to record audio on a computer and broadcast it to another computer using UDP.
Unfortunately, when I try to Play the received data using WaveOut it throws an error saying "Not a WAVE file - no RIFF header".
How can I play the audio data in bytes through WaveOut? I am able to play the sound using DirectSound.
Below is the code I am using.

MemoryStream ms = new MemoryStream(audioData); TrimmedWaveStream = new TrimWaveStream(new WaveFileReader(ms)); waveOutStream.Init(TrimmedWaveStream); waveOutStream.Play();

Thanks in Adavnce...

Libin


Viewing all articles
Browse latest Browse all 5831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>