开发者

How to capture sound from audio out in c++

开发者 https://www.devze.com 2023-03-19 02:13 出处:网络
I need to capture audio stream from the audio output and write it to a file. In fact the way it does fraps.

I need to capture audio stream from the audio output and write it to a file. In fact the way it does fraps.

At the moment I know a few solutions. 1. WDM Filter Audio driver (exactly know what fraps does not use this method) 2. Use the "Stereo Mixer" (if there is in 开发者_开发技巧the system) and then write as usual through waveIn.

Tell me how this problem should be solved properly. It is no code - just explain the algorithm.

Many thanks in advance to all responded.


Just use the stereo mixer as the audio source. To perform the record itself there definetely should be some WinAPI functions, or there is DirectX, or you just could use some 3rd-party library — lots of possibilities here.

0

精彩评论

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