diff options
author | Scott Stone <tafoid@users.noreply.github.com> | 2012-08-29 17:28:47 +0000 |
---|---|---|
committer | Scott Stone <tafoid@users.noreply.github.com> | 2012-08-29 17:28:47 +0000 |
commit | f22b57d0925f7d7aaae312ca4e3b8abb08b156d1 (patch) | |
tree | 0e7ac25c3016bdb832173e5895f04078f34f6c4d /src/osd | |
parent | 54816acacee2dc2a600682174040ec071ee68ff1 (diff) |
Fixed for an SDL sound bug surrounding use of -speed and pausing frequently causing corrupt sound. [Antonio Giner]
Diffstat (limited to 'src/osd')
-rw-r--r-- | src/osd/sdl/sound.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osd/sdl/sound.c b/src/osd/sdl/sound.c index 9cac5453930..594677b6c4f 100644 --- a/src/osd/sdl/sound.c +++ b/src/osd/sdl/sound.c @@ -307,7 +307,7 @@ void sdl_osd_interface::update_audio_stream(const INT16 *buffer, int samples_thi fprintf(sound_log, "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 |