Capture audio of a single application on Windows 7

后端 未结 2 760
野趣味
野趣味 2020-12-10 07:15

Is there a way to capture the audio outputted by only a single application, and not the system as a whole? With WASAPI I can capture the entire system audio, but I wish to o

相关标签:
2条回答
  • 2020-12-10 08:05

    Depending on the APIs used by the application to play the audio, you could write an AppInit DLL that will wrap the built-in waveIn\waveOut functions and would pass along the audio data. I know this works with the waveIn\waveOut functions, but not sure what other audio playback interfaces there are on Windows 7 and whether they are compatible with the AppInit trick.

    0 讨论(0)
  • 2020-12-10 08:06

    Detours is used for hooking. Using the lib to hook IAudioRenderClient interface, including GetBuffer and ReleaseBuffer, and read data from the buffer.

    0 讨论(0)
提交回复
热议问题