From a34dbef0b96a6d794fcc35e5dde24f3f5c9b8024 Mon Sep 17 00:00:00 2001 From: Brandon Wright Date: Wed, 22 Nov 2017 18:18:33 -0600 Subject: [PATCH] Remove debugging printfs. --- apu/apu.cpp | 5 +---- gtk/src/gtk_sound_driver_pulse.cpp | 3 +-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/apu/apu.cpp b/apu/apu.cpp index 4465f89f..fc4390a7 100644 --- a/apu/apu.cpp +++ b/apu/apu.cpp @@ -479,10 +479,7 @@ void S9xUpdateDynamicRate (int avail, int buffer_size) int delta_mid = avail - half_size; double direction = (double) delta_mid / half_size; 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(); } diff --git a/gtk/src/gtk_sound_driver_pulse.cpp b/gtk/src/gtk_sound_driver_pulse.cpp index ff0bfe89..07f6727e 100644 --- a/gtk/src/gtk_sound_driver_pulse.cpp +++ b/gtk/src/gtk_sound_driver_pulse.cpp @@ -143,7 +143,7 @@ S9xPulseSoundDriver::open_device (void) buffer_attr.minreq = -1; buffer_attr.prebuf = -1; - printf ("PulseAudio sound driver initializing...\n"); + printf ("PulseAudio sound driver initializing..."); printf (" --> (%dhz, %s %s, %dms)...\n", Settings.SoundPlaybackRate, @@ -203,7 +203,6 @@ S9xPulseSoundDriver::open_device (void) actual_buffer_attr = pa_stream_get_buffer_attr (stream); buffer_size = actual_buffer_attr->tlength; - printf ("size: %d\n", buffer_size); printf ("OK\n");