]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Quieten some debug messages.
authorMike Brady <mikebrady@eircom.net>
Fri, 30 Jun 2017 19:16:41 +0000 (20:16 +0100)
committerMike Brady <mikebrady@eircom.net>
Fri, 30 Jun 2017 19:16:41 +0000 (20:16 +0100)
player.c
shairport.c

index b176a7190e1dfd52b28c2cf45f417cd7bc0ef168..21bff7323eb86582590b2ce7df5de1260bf218ce 100644 (file)
--- 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);
index e07e8c2b60786ce389f57cf70ac810a092258f9d..b3133274728395f00894948775bb7698bd05c39a 100644 (file)
@@ -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;