mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-12-22 13:16:31 +01:00
speaker-test: Add missing draining at the end
Without the call of snd_pcm_drain() the pending data on the buffer might be discarded, which results in the abort of playback sound in the middle. Let's fix it. Reported-and-tested-by: Jarkko Nikula <jarkko.nikula@linux.intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
808af5fdb0
commit
f58ce3619d
1 changed files with 1 additions and 0 deletions
|
@ -1307,6 +1307,7 @@ int main(int argc, char *argv[]) {
|
|||
}
|
||||
}
|
||||
|
||||
snd_pcm_drain(handle);
|
||||
|
||||
free(frames);
|
||||
#ifdef CONFIG_SUPPORT_CHMAP
|
||||
|
|
Loading…
Reference in a new issue