From: Mike Brady Date: Fri, 30 Jun 2017 19:16:41 +0000 (+0100) Subject: Quieten some debug messages. X-Git-Tag: 3.1~10^2~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03887a0582ebf0ff15e85f7843004c460489c35f;p=thirdparty%2Fshairport-sync.git Quieten some debug messages. --- diff --git a/player.c b/player.c index b176a719..21bff732 100644 --- a/player.c +++ b/player.c @@ -874,7 +874,7 @@ static abuf_t *buffer_get_frame(rtsp_conn_info *conn) { int64_t filler_size = max_dac_delay; // 0.1 second -- the maximum we'll add to the DAC if (local_time_now >= conn->first_packet_time_to_play) { - debug(1,"Gone past starting time"); + // debug(1,"Gone past starting time"); have_sent_prefiller_silence = 1; conn->ab_buffering = 0; @@ -956,7 +956,7 @@ static abuf_t *buffer_get_frame(rtsp_conn_info *conn) { debug(1, "Failed to allocate %d byte silence buffer.", fs); else { memset(silence, 0, conn->output_bytes_per_frame * fs); - debug(1,"Frames to start: %llu, DAC delay %ld, buffer: %d packets.",exact_frame_gap,dac_delay,seq_diff(conn->ab_read, conn->ab_write, conn->ab_read)); + // debug(1,"Frames to start: %llu, DAC delay %ld, buffer: %d packets.",exact_frame_gap,dac_delay,seq_diff(conn->ab_read, conn->ab_write, conn->ab_read)); config.output->play(silence, fs); free(silence); have_sent_prefiller_silence = 1; @@ -965,13 +965,13 @@ static abuf_t *buffer_get_frame(rtsp_conn_info *conn) { } } else { //no delay function on back end -- just send the prefiller silence - debug(1,"Back end has no delay function."); + // debug(1,"Back end has no delay function."); // send the appropriate prefiller here... signed short *silence; if (lead_time != 0) { int64_t frame_gap = (lead_time * config.output_rate) >> 32; - debug(1,"%d frames needed.",frame_gap); + // debug(1,"%d frames needed.",frame_gap); while (frame_gap>0) { size_t fs = config.output_rate/10; if (fs>frame_gap) @@ -981,7 +981,7 @@ static abuf_t *buffer_get_frame(rtsp_conn_info *conn) { if (silence == NULL) debug(1, "Failed to allocate %d frame silence buffer.", fs); else { - debug(1, "Outputting %d frames of silence.", fs); + // debug(1, "Outputting %d frames of silence.", fs); memset(silence, 0, conn->output_bytes_per_frame * fs); config.output->play(silence, fs); free(silence); diff --git a/shairport.c b/shairport.c index e07e8c2b..b3133274 100644 --- a/shairport.c +++ b/shairport.c @@ -373,8 +373,7 @@ int parse_options(int argc, char **argv) { config.resyncthreshold = 1.0 * fResyncthreshold / 44100; config.tolerance = 1.0 * fTolerance / 44100; config.audio_backend_silent_lead_in_time = -1.0; // flag to indicate it has not been set - config.audio_backend_silent_lead_in_time = 0.0; // flag to indicate it has not been set - + config_setting_t *setting; const char *str = 0; int value = 0;