Skip to content

Commit

Permalink
re-add pa_sleep and increase to one second without this we get 100% c…
Browse files Browse the repository at this point in the history
…pu usage
  • Loading branch information
Karl Stavestrand authored and Karl Stavestrand committed Sep 15, 2020
1 parent 91c1f0c commit 2577b21
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions input/portaudio.c
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ void *input_portaudio(void *audiodata) {

// record
while ((err = Pa_IsStreamActive(stream)) == 1) {
Pa_Sleep(1000);
if (audio->terminate == 1)
break;
}
Expand Down

0 comments on commit 2577b21

Please sign in to comment.