From 4a05e50636fcaa63201ec73849a45c0ccfe9f6c0 Mon Sep 17 00:00:00 2001 From: Themaister Date: Thu, 4 Aug 2011 19:11:14 +0200 Subject: [PATCH] Minor progress. But no audio, hrm. --- audio/dsound.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/audio/dsound.c b/audio/dsound.c index 0c2764c106..7f60aa7ee2 100644 --- a/audio/dsound.c +++ b/audio/dsound.c @@ -101,11 +101,6 @@ static DWORD CALLBACK dsound_thread(PVOID data) get_positions(ds, &read_ptr, NULL); DWORD avail = write_avail(read_ptr, write_ptr, buffer_mask); - if (avail > ds->buffer_size / 2) // We've underrun (or started to underrun) for some odd reason, skip ahead. - { - write_ptr = (read_ptr + ds->buffer_size - 2 * CHUNK_SIZE) & buffer_mask; - avail = 2 * CHUNK_SIZE; - } EnterCriticalSection(&ds->crit); DWORD fifo_avail = fifo_read_avail(ds->buffer);