开发者

Audio Streaming in C

开发者 https://www.devze.com 2023-02-18 06:44 出处:网络
I am working on this project in which we\'ve got to implement real time audio streaming. Think of it as more or less a phone conversation, so the audio data that is fed in needs to be played while bei

I am working on this project in which we've got to implement real time audio streaming. Think of it as more or less a phone conversation, so the audio data that is fed in needs to be played while being fed.

I want to know if there are any libraries (Linux) that would enable me to do this. If this can be done via SDL it would be great because we are already using SDL for many othe开发者_Go百科r purposes.


This is doable using SDL. SDL_OpenAudio provides lowish level access to the audio device, registering a callback function that is called from a separate thread that will fill the audio buffer with sound data whenever it is ready for more.

0

精彩评论

暂无评论...
验证码 换一张
取 消