[xiph-cvs] cvs commit: ao/src/plugins/alsa09 ao_alsa09.c
Jack Moffitt
jack at xiph.org
Fri Dec 7 12:57:42 PST 2001
jack 01/12/07 12:57:42
Modified: src/plugins/alsa09 ao_alsa09.c
Log:
Ok, so I was wrong. 4 periods and 4k buffers are better (4 periods per
channel that is).
Revision Changes Path
1.8 +5 -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.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- ao_alsa09.c 2001/12/07 04:00:47 1.7
+++ ao_alsa09.c 2001/12/07 20:57:41 1.8
@@ -34,8 +34,8 @@
#include <ao/ao.h>
#include <ao/plugin.h>
-#define AO_ALSA_BUF_SIZE 1024
-#define AO_ALSA_PERIODS 16
+#define AO_ALSA_BUF_SIZE 4096
+#define AO_ALSA_PERIODS 4
static char *ao_alsa_options[] = {
"dev",
@@ -172,12 +172,15 @@
if (err < 0)
goto error;
+ printf("Setting channels to %d\n", format->channels);
cmd = "snd_pcm_hw_params_set_channels";
if (format->channels == 1 || format->channels == 2)
err = snd_pcm_hw_params_set_channels(internal->pcm_handle,
hwparams, format->channels);
else
return 0;
+
+ printf("Error for channels was %d\n", err);
if (err < 0)
goto error;
internal->sample_size = format->bits * format->channels / 8;
--- >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