ref: c84212139a233f6ef34f67f8c160493fbf29877e
parent: ce264136a7e683c2da5dfd5a44257abe369e59eb
author: robs <robs>
date: Wed Feb 20 15:50:52 EST 2008
Fix short noise at end of alsa playback
--- a/ChangeLog
+++ b/ChangeLog
@@ -37,7 +37,7 @@
o Command line support for multiple file comments. (robs)
o Added soxi utility to extract/display file header fields. (robs)
o Added pkg-config support. (Pascal Giard)
- o Added simple V.U. meter. (robs)
+ o Added basic VU meter. (robs)
o Added simple heuristic to detect when playing an album and set
the default replay-gain mode to `album'. (robs)
@@ -47,6 +47,7 @@
o Fix crash on 64-bit arch. with tempo & key effects. (Sami Liedes)
o Fix [1890983] rec shortcut should apply bit depth (8-bit,
16-bit, etc.) to input handler. (robs)
+ o Fix short noise at end of alsa playback. (Morita Sho)
Internal improvements:
--- a/src/alsa.c
+++ b/src/alsa.c
@@ -652,7 +652,8 @@
memset(alsa->buf, 0, frames_of_silence * ft->signal.size * ft->signal.channels);
- while (0 && frames_of_silence > 0) {
+ sox_debug("padding output with %u silent samples", (unsigned)frames_of_silence);
+ while (frames_of_silence > 0) {
int err;
err = snd_pcm_writei(alsa->pcm_handle,
alsa->buf,