// debug(1,"dacp_send_command: command is: \"%s\".",command);
if (dacp_server.port == 0) {
- debug(3, "No DACP port specified yet");
+ // debug(3, "No DACP port specified yet");
result = 490; // no port specified
} else {
(metadata_store.advanced_dacp_server_active != 0);
metadata_store.dacp_server_active = 0;
metadata_store.advanced_dacp_server_active = 0;
+ /*
debug(3,
"setting metadata_store.dacp_server_active and "
"metadata_store.advanced_dacp_server_active to 0 with an update "
"flag value of %d",
ch);
+ */
metadata_hub_modify_epilog(ch);
uint64_t time_to_wait_for_wakeup_ns =
} else {
debug(1, "Unexpected return code %d from dacp_get_speaker_list.", http_response);
}
- } else if (http_response != 400) {
+ } else if ((http_response != 400) && (http_response != 490)) {
debug(3, "Unexpected return code %d from dacp_get_client_volume.", http_response);
}
if (the_actual_volume) {
}
last_metadata_hub_modify_prolog_file = strdup(filename);
last_metadata_hub_modify_prolog_line = linenumber;
- debug(3, "Metadata_hub write lock acquired.");
+ // debug(3, "Metadata_hub write lock acquired.");
}
metadata_hub_re_lock_access_is_delayed = 0;
}
}
}
pthread_rwlock_unlock(&metadata_hub_re_lock);
- debug(3, "Metadata_hub write lock unlocked.");
+ // debug(3, "Metadata_hub write lock unlocked.");
}
/*
printf(" --metadata-pipename=PIPE send metadata to PIPE, e.g. "
"--metadata-pipename=/tmp/shairport-sync-metadata.\n");
printf(" The default is /tmp/shairport-sync-metadata.\n");
- printf(" --get-coverart send cover art through the metadata pipe.\n");
+ printf(" -g, --get-coverart send cover art through the metadata pipe.\n");
#endif
printf(" -u, --use-stderr log messages through STDERR rather than the system log.\n");
printf("\n");
// seconds then we can add an offset of 5.17 seconds and still leave a second's worth of buffers
// for unexpected circumstances
+#ifdef CONFIG_METADATA
+ /* Get the metadata setting. */
+ config.metadata_enabled = 1; // if metadata support is included, then enable it by default
+ config.get_coverart = 1; // if metadata support is included, then enable it by default
+#endif
+
+#ifdef CONFIG_CONVOLUTION
+ config.convolution_max_length = 8192;
+#endif
+ config.loudness_reference_volume_db = -20;
+
#ifdef CONFIG_METADATA_HUB
config.cover_art_cache_dir = "/tmp/shairport-sync/.cache/coverart";
config.scan_interval_when_active =
#ifdef CONFIG_METADATA
/* Get the metadata setting. */
- config.metadata_enabled = 1; // if metadata support is included, then enable it by default
if (config_lookup_string(config.cfg, "metadata.enabled", &str)) {
if (strcasecmp(str, "no") == 0)
config.metadata_enabled = 0;
die("Invalid metadata enabled option choice \"%s\". It should be \"yes\" or \"no\"");
}
- config.get_coverart = 1; // if metadata support is included, then enable it by default
if (config_lookup_string(config.cfg, "metadata.include_cover_art", &str)) {
if (strcasecmp(str, "no") == 0)
config.get_coverart = 0;
dvalue);
}
- config.convolution_max_length = 8192;
if (config_lookup_int(config.cfg, "dsp.convolution_max_length", &value)) {
config.convolution_max_length = value;
die("Invalid dsp.convolution. It should be \"yes\" or \"no\"");
}
- config.loudness_reference_volume_db = -20;
if (config_lookup_float(config.cfg, "dsp.loudness_reference_volume_db", &dvalue)) {
config.loudness_reference_volume_db = dvalue;
if (dvalue > 0 || dvalue < -100)
break;
case 'g':
if (config.metadata_enabled == 0)
- die("If you want to get cover art, you must also select the --metadata-pipename option.");
+ die("If you want to get cover art, ensure metadata_enabled is true.");
break;
#endif
case 'S':