Skip to content

Commit

Permalink
don't spawn audio thread when listing portaudio devices
Browse files Browse the repository at this point in the history
  • Loading branch information
Karl Stavestrand authored and Karl Stavestrand committed Oct 27, 2024
1 parent d800dcf commit 622b9e2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cava.c
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,11 @@ as of 0.4.0 all options are specified in config file, see in '/home/username/.co
case INPUT_PORTAUDIO:
audio.format = 16;
audio.rate = 44100;
thr_id = pthread_create(&p_thread, NULL, input_portaudio, (void *)&audio);
if (!strcmp(audio.source, "list")) {
input_portaudio((void *)&audio);
} else {
thr_id = pthread_create(&p_thread, NULL, input_portaudio, (void *)&audio);
}
break;
#endif
#ifdef PIPEWIRE
Expand Down

0 comments on commit 622b9e2

Please sign in to comment.