Skip to content
Snippets Groups Projects
Commit 580d261d authored by Jack Moffitt's avatar Jack Moffitt
Browse files

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.


git-svn-id: http://svn.xiph.org/trunk/ao@2432 0101bb08-14d6-0310-b084-bc0e0c8e3800
parent 53ecab93
No related branches found
No related tags found
No related merge requests found
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
#include <ao/plugin.h> #include <ao/plugin.h>
#define AO_ALSA_BUF_SIZE 1024 #define AO_ALSA_BUF_SIZE 1024
#define AO_ALSA_PERIODS 32 #define AO_ALSA_PERIODS 16
static char *ao_alsa_options[] = { static char *ao_alsa_options[] = {
"dev", "dev",
...@@ -207,7 +207,7 @@ int ao_plugin_open(ao_device *device, ao_sample_format *format) ...@@ -207,7 +207,7 @@ int ao_plugin_open(ao_device *device, ao_sample_format *format)
cmd = "snd_pcm_hw_params_set_periods"; cmd = "snd_pcm_hw_params_set_periods";
err = snd_pcm_hw_params_set_periods(internal->pcm_handle, hwparams, err = snd_pcm_hw_params_set_periods(internal->pcm_handle, hwparams,
internal->periods, 0); internal->periods * format->channels, 0);
if (err < 0) if (err < 0)
goto error; goto error;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment