]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Quieten some debug messages.
authorMike Brady <mikebrady@eircom.net>
Mon, 5 Feb 2018 18:10:49 +0000 (18:10 +0000)
committerMike Brady <mikebrady@eircom.net>
Mon, 5 Feb 2018 18:10:49 +0000 (18:10 +0000)
common.c
rtsp.c

index ea6733ac10b830d971466d1772cb88616cab7612..b854d8395ce6f8779a9e069d50920a94085780c9 100644 (file)
--- a/common.c
+++ b/common.c
@@ -679,11 +679,11 @@ uint32_t uatoi(const char *nptr) {
 }
 
 double flat_vol2attn(double vol, long max_db, long min_db) {
-  double vol_setting = min_db;
+  double vol_setting = min_db;  // if all else fails, set this, for safety
 
   if ((vol <= 0.0) && (vol >= -30.0)) {
     vol_setting = ((max_db - min_db) * (30.0 + vol) / 30) + min_db;
-    debug(2, "Linear Volume Setting: %f in range %ld to %ld.", vol_setting, min_db, max_db);
+    // debug(2, "Linear profile Volume Setting: %f in range %ld to %ld.", vol_setting, min_db, max_db);
   } else if (vol != -144.0) {
     debug(1,
           "Linear volume request value %f is out of range: should be from 0.0 to -30.0 or -144.0.",
@@ -752,8 +752,8 @@ double vol2attn(double vol, long max_db, long min_db) {
     vol_setting = min_db; // for safety, return the lowest setting...
   }
   // debug(1,"returning an attenuation of %f.",vol_setting);
-  debug(2, "Standard profile Volume Setting for Airplay vol %f: %f in range %ld to %ld.", vol,
-        vol_setting, min_db, max_db);
+  // debug(2, "Standard profile Volume Setting for Airplay vol %f: %f in range %ld to %ld.", vol,
+  //      vol_setting, min_db, max_db);
   return vol_setting;
 }
 
diff --git a/rtsp.c b/rtsp.c
index f6f31c075c74f99112842f425036e0b448fdc4fb..fa06f4fc6ce124767323c0c05452416d96591384 100644 (file)
--- a/rtsp.c
+++ b/rtsp.c
@@ -859,7 +859,7 @@ static void handle_set_parameter_parameter(rtsp_conn_info *conn, rtsp_message *r
 
     if (!strncmp(cp, "volume: ", 8)) {
       float volume = atof(cp + 8);
-      debug(2, "AirPlay request to set volume to: %f.", volume);
+      //debug(2, "AirPlay request to set volume to: %f.", volume);
       player_volume(volume, conn);
     } else
 #ifdef CONFIG_METADATA