media/libsydneyaudio/bug526411_latency.patch
author Matthew Gregan <kinetik@flim.org>
Mon, 08 Feb 2010 12:29:43 +1300
changeset 37972 8c84037f3ad92ad28785e63211077161c9ba2732
permissions -rw-r--r--
Bug 526411 - Reduce requested audio latency in sydneyaudio ALSA backend to avoid playback deadlock. r=chris.double

diff --git a/media/libsydneyaudio/src/sydney_audio_alsa.c b/media/libsydneyaudio/src/sydney_audio_alsa.c
--- a/media/libsydneyaudio/src/sydney_audio_alsa.c
+++ b/media/libsydneyaudio/src/sydney_audio_alsa.c
@@ -138,17 +138,17 @@ sa_stream_open(sa_stream_t *s) {
                          SND_PCM_FORMAT_S16_LE,
 #else
                          SND_PCM_FORMAT_S16_BE,
 #endif
                          SND_PCM_ACCESS_RW_INTERLEAVED,
                          s->n_channels,
                          s->rate,
                          1,
-                         500000) < 0) {
+                         250000) < 0) {
     snd_pcm_close(s->output_unit);
     s->output_unit = NULL;
     return SA_ERROR_NOT_SUPPORTED;
   }
   
   return SA_SUCCESS;
 }