Remove debugging printfs.

This commit is contained in:
Brandon Wright 2017-11-22 18:18:33 -06:00
parent d12121cec9
commit a34dbef0b9
2 changed files with 2 additions and 6 deletions

View File

@ -479,10 +479,7 @@ void S9xUpdateDynamicRate (int avail, int buffer_size)
int delta_mid = avail - half_size; int delta_mid = avail - half_size;
double direction = (double) delta_mid / half_size; double direction = (double) delta_mid / half_size;
spc::dynamic_rate_multiplier = 1.0 - (Settings.DynamicRateLimit / 100000.0) * direction; spc::dynamic_rate_multiplier = 1.0 - (Settings.DynamicRateLimit / 100000.0) * direction;
#if 1
printf ("%d / %d : ", avail, buffer_size);
printf ("%d%%\n", avail * 100 / buffer_size);
#endif
UpdatePlaybackRate(); UpdatePlaybackRate();
} }

View File

@ -143,7 +143,7 @@ S9xPulseSoundDriver::open_device (void)
buffer_attr.minreq = -1; buffer_attr.minreq = -1;
buffer_attr.prebuf = -1; buffer_attr.prebuf = -1;
printf ("PulseAudio sound driver initializing...\n"); printf ("PulseAudio sound driver initializing...");
printf (" --> (%dhz, %s %s, %dms)...\n", printf (" --> (%dhz, %s %s, %dms)...\n",
Settings.SoundPlaybackRate, Settings.SoundPlaybackRate,
@ -203,7 +203,6 @@ S9xPulseSoundDriver::open_device (void)
actual_buffer_attr = pa_stream_get_buffer_attr (stream); actual_buffer_attr = pa_stream_get_buffer_attr (stream);
buffer_size = actual_buffer_attr->tlength; buffer_size = actual_buffer_attr->tlength;
printf ("size: %d\n", buffer_size);
printf ("OK\n"); printf ("OK\n");