Displaying 1 result from an estimated 1 matches for "buf_size_env".
2002 Jul 27
0
libao patch
...ao_alsa_info;
}
+static int get_alsa_environment_buf_size(void)
+{
+ char * buf;
+
+ buf = getenv("AO_ALSA_BUFFER_SIZE");
+ if (buf == NULL)
+ return 0;
+ else
+ return strtol(buf, NULL, 10);
+}
int ao_plugin_device_init(ao_device *device)
{
ao_alsa_internal *internal;
+ int buf_size_env;
internal = (ao_alsa_internal *) malloc(sizeof(ao_alsa_internal));
- if (internal == NULL)
+ if (internal == NULL)
return 0; /* Could not initialize device memory */
- internal->buf_size = AO_ALSA_BUF_SIZE;
+ buf_size_env = get_alsa_environment_buf_size();
+ if (buf_size_env)
+ int...