[xiph-cvs] cvs commit: ao/src/plugins/alsa09 ao_alsa09.c

Jack Moffitt jack at xiph.org
Thu Dec 6 19:59:27 PST 2001



jack        01/12/06 19:59:27

  Modified:    src/plugins/alsa09 ao_alsa09.c
  Log:
  Apparently one some cards the limit is per channel on the total buffer
  size.  So we'll set it lower and multiply by number of output channels.

Revision  Changes    Path
1.6       +2 -2      ao/src/plugins/alsa09/ao_alsa09.c

Index: ao_alsa09.c
===================================================================
RCS file: /usr/local/cvsroot/ao/src/plugins/alsa09/ao_alsa09.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- ao_alsa09.c	2001/12/07 03:41:23	1.5
+++ ao_alsa09.c	2001/12/07 03:59:27	1.6
@@ -35,7 +35,7 @@
 #include <ao/plugin.h>
 
 #define AO_ALSA_BUF_SIZE 1024
-#define AO_ALSA_PERIODS  32
+#define AO_ALSA_PERIODS  16
 
 static char *ao_alsa_options[] = {
         "dev",
@@ -207,7 +207,7 @@
 
         cmd = "snd_pcm_hw_params_set_periods";
         err = snd_pcm_hw_params_set_periods(internal->pcm_handle, hwparams,
-			internal->periods, 0);
+			internal->periods * format->channels, 0);
         if (err < 0)
                 goto error;
 

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list