]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Use the correct tag name for desired alsa buffer length -- audio_backend_buffer_desir...
authorMike Brady <mikebrady@eircom.net>
Fri, 18 Dec 2015 13:39:51 +0000 (13:39 +0000)
committerMike Brady <mikebrady@eircom.net>
Fri, 18 Dec 2015 13:39:51 +0000 (13:39 +0000)
audio_alsa.c

index 76d007423fd8a807481a31b17308f9e5569075a1..465caec4692ff3b8330cd362817d01b085d2cc56 100644 (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 {