当前位置: 动力学知识库 > 问答 > 编程问答 >

c - Get the Monitor sink of the current active output in PulseAudio

问题描述:

I am trying to record desktop audio using the simple API from libpulse. Audio playback works fine with the simple API, but what I need to do is:

Find the correct Monitor sink for the current active output to use it with pa_simple_new as dev.

Anyone some points I could check? E.g. enumerating devices?

网友答案:

The monitor of a device is "device.monitor" (e.g. "Nullmodule01" -> "Nullmodule01.monitor"). Just append ".monitor" to the device name.

分享给朋友:
您可能感兴趣的文章:
随机阅读: