Use the correct tag name for desired alsa buffer length -- audio_backend_buffer_desired_length

This commit is contained in:
Mike Brady
2015-12-18 13:39:51 +00:00
parent 6e3f64b873
commit 9725830d9a
+4 -3
View File
@@ -94,7 +94,8 @@ static void help(void) {
}
static int init(int argc, char **argv) {
const char *str;
// debug(1,"audio_alsa init called.");
const char *str;
int value;
int hardware_mixer = 0;
@@ -108,9 +109,9 @@ static int init(int argc, char **argv) {
if (config.cfg != NULL) {
/* Get the desired buffer size setting. */
if (config_lookup_int(config.cfg, "alsa.audio_backend_buffer_desired_length_software", &value)) {
if (config_lookup_int(config.cfg, "alsa.audio_backend_buffer_desired_length", &value)) {
if ((value < 0) || (value > 66150))
die("Invalid alsa audio backend buffer desired length (software) \"%d\". It should be between 0 and "
die("Invalid alsa audio backend buffer desired length \"%d\". It should be between 0 and "
"66150, default is 6615",
value);
else {