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

New Post: mixing audio received through serial port with a local audio file

$
0
0
Dear Sir,

I am getting audio file stream (as variable sized chunks per time eg 2000 bytes). I am saving this file to filewriter class

Private Mywriter As WaveFileWriter

and into the dataReceived event , I pass the audio chunk to wavefileriter class by Mywriter.Write

Question , :
  • I have a local mp3 file in the same format at the received bytes (PCM,16 bit , 8000 HZ,mono).
  • I will get the size of the received data , eg 2000 bytes, and will get the first 2000 bytes from the local file(same format)
  • I need to get 2000 bytes that is mix between first 2000 bytes & second 2000 bytes.
  • I will pass this 2000 bytes to the wavefilewriter.
How.

Thanks,

Viewing all articles
Browse latest Browse all 5831

Trending Articles