Skip to content

Commit

Permalink
ALSAAudioInput: use snd_pcm_drop() instead of snd_pcm_drain() in clas…
Browse files Browse the repository at this point in the history
…s destructor

snd_pcm_drain() waits for all pending frames to be played.

snd_pcm_drop() is better in our case, because we want the PCM stream to be stopped immediately.
  • Loading branch information
davidebeatrici committed Jun 16, 2018
1 parent a092a44 commit fbbdf2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mumble/ALSAAudio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ void ALSAAudioInput::run() {
}
}

snd_pcm_drain(capture_handle);
snd_pcm_drop(capture_handle);
snd_pcm_close(capture_handle);

qWarning("ALSAAudioInput: Releasing ALSA Mic.");
Expand Down

0 comments on commit fbbdf2e

Please sign in to comment.