search for: ao_alsa_internal

Displaying 1 result from an estimated 1 matches for "ao_alsa_internal".

Did you mean: ao_alsa_internal_t
2002 Jul 27
0
libao patch
...@@ -90,17 +90,33 @@ return &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...