Make the scan interval five seconds and quieten some more debug messages.

This commit is contained in:
Mike Brady
2018-02-21 18:38:13 +00:00
parent 64d36693d4
commit b05ced6658
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -249,7 +249,7 @@ int dacp_send_command(const char *command, char **body, ssize_t *bodysize) {
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) {
@@ -591,7 +591,7 @@ void *dacp_monitor_thread_code(void *na) {
response = NULL;
}
*/
sleep(2);
sleep(5); // check every five seconds
}
debug(1, "DACP monitor thread exiting.");
pthread_exit(NULL);
+1 -1
View File
@@ -87,7 +87,7 @@ static void resolve_callback(AvahiServiceResolver *r, AVAHI_GCC_UNUSED AvahiIfIn
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);
+1 -1
View File
@@ -1887,7 +1887,7 @@ static void *player_thread_func(void *arg) {
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);