This project has moved. For the latest updates, please go here.

ASIO Channel Broadcast Streaming

Feb 8, 2015 at 7:09 PM
Hi friends,

My Sound Device: Focusrite Scarlett 18i20 (18 inputs 20 outputs)
I have a socket connection. This connection send to voice data on Broadcast.

I use to NAudio.dll and ASIO Driver. I connect my device and recorded wav sound file(ASIO) but i can't send asio live sound(Sample) on Socket.

private Socket socket;
private IPEndPoint iep;

//My Socket Connection Config
socket = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);
socket.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.Broadcast, 1);
iep = new IPEndPoint(IPAddress.Parse(host), port);

My Voice Stream Listener Program Decode(1 Channel(Mono) PCM 16Bit 8000 or 44100 SampleRate) c# and android platform code...

I need "GetAsInterleavedSamples" data convert to (PCM 16Bit 8000or41000 SampleRate Mono) data byte[] and send socket...

private void AsioAudioAvailable(object sender, AsioAudioAvailableEventArgs e)
socket.sendTo(byte[] buffer, EndPoint remoteEP); 
Feb 12, 2015 at 8:34 PM
Please check out this article to learn more about converting between different audio formats with NAudio.