Quieten some debug messages.

This commit is contained in:
Mike Brady
2018-02-05 18:10:49 +00:00
parent 370501117e
commit a89742e3a0
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -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;
}
+1 -1
View File
@@ -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