mirror of https://github.com/snes9xgit/snes9x.git
Remove debugging printfs.
This commit is contained in:
parent
d12121cec9
commit
a34dbef0b9
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue