Skip to content

Commit

Permalink
Exit on alsa capture error
Browse files Browse the repository at this point in the history
  • Loading branch information
HEnquist committed Mar 12, 2021
1 parent f68fae5 commit 5ffd961
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/alsadevice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,9 @@ fn capture_loop_bytes(
message: format!("{}", msg),
})
.unwrap();
let msg = AudioMessage::EndOfStream;
channels.audio.send(msg).unwrap();
return;
}
};
let mut chunk = if params.floats {
Expand Down

0 comments on commit 5ffd961

Please sign in to comment.