int send_simple_dacp_command(const char *command) {
int reply = 0;
char *server_reply = NULL;
- debug(1, "Sending command \"%s\".", command);
+ debug(2, "Sending command \"%s\".", command);
ssize_t reply_size = 0;
reply = dacp_send_command(command, &server_reply, &reply_size);
if (server_reply) {
response = NULL;
}
*/
- sleep(2);
+ sleep(5); // check every five seconds
}
debug(1, "DACP monitor thread exiting.");
pthread_exit(NULL);
dacpid += strlen("iTunes_Ctrl_");
if (strcmp(dacpid, conn->dacp_id) == 0) {
if (conn->dacp_port != port) {
- debug(1, "Client's DACP port: %u.", port);
+ debug(2, "Client's DACP port: %u.", port);
conn->dacp_port = port;
#ifdef HAVE_DACP_CLIENT
set_dacp_server_information(conn);
size_t filler_length =
config.resyncthreshold * config.output_rate; // number of samples
if ((sync_error > 0) && (sync_error > filler_length)) {
- debug(1, "Large positive sync error: %lld.", sync_error);
+ // debug(1, "Large positive sync error: %lld.", sync_error);
frames_to_drop = sync_error / conn->output_sample_ratio;
} else if ((sync_error < 0) && ((-sync_error) > filler_length)) {
// debug(1, "Large negative sync error: %lld. Inserting silence.", sync_error);