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