0

I'm trying to write an audio application in C. for now I support pulseaudio and alsa, now it's time to support jack.

I want to be able to retrieve input devices in jack in order to choose one, connect to it and record the audio from that device.

what I didn't manage to understand is how to get the list of record and playback devices available in jack.

any ideas regarding the issue would be greatly appreciated.

4

1 回答 1

0

我没有测试过这个,但是手册的查找端口部分有这个功能

const char ** jack_get_ports(jack_client_t *, const char *port_name_pattern,
                             const char *type_name_pattern, unsigned long flags);

如果您使用NULL模式调用它并将标志设置为JackPortIsInput,我希望它列出可用的输入端口。

于 2014-03-31T15:04:26.813 回答