Audio streaming using C++ tutorial and sample code

TJ1 picture TJ1 · Jul 20, 2012 · Viewed 33.1k times · Source

I would like to learn basics of audio streaming. In particular, I would like to learn how to capture audio from a computer mic, and in real time stream it so that another user can listen to it live. I would like to do it on Windows.

Is there any good tutorial that explains how it is done and some sample C++ code that I can take a look for more details?

Also I heard ASIO provides a low latency library, so I am interested in that.

Answer

Aesthete picture Aesthete · Jul 20, 2012

Maybe here would be a good place to start, if you're using Windows?

Have a read of that page and look at the WASAPI as well.

You can capture raw audio directly from the device using the IAudioCaptureClient

I have been involved in projects involving real time streaming of audio and have used aac as the audio format and Live555 for a streaming library. These might be a good place to start.