diff options
author | Aaron Giles <aaron@aarongiles.com> | 2008-07-24 06:55:03 +0000 |
---|---|---|
committer | Aaron Giles <aaron@aarongiles.com> | 2008-07-24 06:55:03 +0000 |
commit | 56d6052e1f13a9aae8ff4f4c6632bd721aa8f09b (patch) | |
tree | 36ba92f06c33fa3192f06056b864bbc93b385e83 | |
parent | 0b77a69691d6c7ef7117f9c141bd1301d083011c (diff) |
01892: calspeed: Refreshspeed causes horrible screetching in some games [Calspeed used for example].
-rw-r--r-- | src/osd/windows/sound.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/osd/windows/sound.c b/src/osd/windows/sound.c index 16cb5f6b75a..5d7dc39fbe6 100644 --- a/src/osd/windows/sound.c +++ b/src/osd/windows/sound.c @@ -192,15 +192,15 @@ void osd_update_audio_stream(running_machine *machine, INT16 *buffer, int sample // if we're between play and write positions, then bump forward, but only in full chunks while (stream_in < write_position) { -//logerror("Underflow: PP=%d WP=%d(%d) SI=%d(%d) BTF=%d\n", (int)play_position, (int)write_position, (int)orig_write, (int)stream_in, (int)stream_buffer_in, (int)bytes_this_frame); +//printf("Underflow: PP=%d WP=%d(%d) SI=%d(%d) BTF=%d\n", (int)play_position, (int)write_position, (int)orig_write, (int)stream_in, (int)stream_buffer_in, (int)bytes_this_frame); buffer_underflows++; - stream_in += samples_this_frame; + stream_in += bytes_this_frame; } // if we're going to overlap the play position, just skip this chunk if (stream_in + bytes_this_frame > play_position + stream_buffer_size) { -//logerror("Overflow: PP=%d WP=%d(%d) SI=%d(%d) BTF=%d\n", (int)play_position, (int)write_position, (int)orig_write, (int)stream_in, (int)stream_buffer_in, (int)bytes_this_frame); +//printf("Overflow: PP=%d WP=%d(%d) SI=%d(%d) BTF=%d\n", (int)play_position, (int)write_position, (int)orig_write, (int)stream_in, (int)stream_buffer_in, (int)bytes_this_frame); buffer_overflows++; return; } |