문제

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.

도움이 되었습니까?

해결책

I haven't tested this, but the Looking up ports section of the manual has the function

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

If you call it with NULL patterns and set flags to JackPortIsInput, I would expect it to list available input ports.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top