Skip to content

Commit d7009ed

Browse files
committed
portaudio help: fix incorrect device filter
Actually the record-only devices were print for playback and vice versa (bi-directional devices were displayed properly).
1 parent 9ddbac8 commit d7009ed

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/audio/portaudio_common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ portaudio_print_help(enum portaudio_device_direction kind, bool full)
202202
const char *highlight = TERM_BOLD;
203203
const PaDeviceInfo *device_info = Pa_GetDeviceInfo(i);
204204
// filter out (or differently highlight in verbose mode) unusable devices
205-
if (has_channels(device_info, kind)) {
205+
if (!has_channels(device_info, kind)) {
206206
if (log_level < LOG_LEVEL_VERBOSE) {
207207
continue;
208208
} else {

0 commit comments

Comments
 (0)