スピーカーに送信される前に、実行中のさまざまなアプリケーションのオーディオ出力データを操作したいと考えています。音量を上げたり下げたり、オーディオをフィルタリングしたり、など。
オーディオ出力にリアルタイムでアクセスするにはどうすればよいですか?
オーディオ ドライバー インターフェイスに依存しない方法はありますか?
ありがとう!:)
Windows Store apps allow you to use WASAPI. In WASAPI, there is a concept of "audio sessions", of which there is one for every stream of audio being sent to the soundcard. You can enumerate the audio sessions which give you access to IAudioSessionControl. However, this doesn't let you manipulate the audio, which as far as I know WASAPI simply doesn't allow. The best you can hope for is to get hold of ISimpleAudioVolume for each session, but last time I tried that, I found that you couldn't get hold of the session GUIDs you needed to adjust the volume for other processes. You may be able to get hold of the audio endpoints and adjust the master volume for the soundcard.
In short, WASAPI is the most powerful audio API for Windows Store apps but unfortunately I don't think it will let you do very much of what you are asking here.