Minor progress. But no audio, hrm.

This commit is contained in:
Themaister 2011-08-04 19:11:14 +02:00
parent 72c070f338
commit 4a05e50636

View File

@ -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);