Commit b5c8fd26 authored by Ludovic Fauvet's avatar Ludovic Fauvet
Browse files

directsound: fix inverted logic (fix #9195)

parent 0edb7ed8
......@@ -676,7 +676,7 @@ static int FillBuffer( audio_output_t *p_aout, block_t *p_buffer )
if( IDirectSoundBuffer_GetCurrentPosition( p_aout->sys->p_dsbuffer, (LPDWORD) &i_read, NULL) == DS_OK )
{
/* Compute the outer interval between the write and read pointers within the ring buffer */
i_buf = (mtime_t)p_aout->sys->i_write - (mtime_t)i_read;
i_buf = (mtime_t)i_read - (mtime_t)p_aout->sys->i_write;
if( i_buf <= 0 )
i_buf += DS_BUF_SIZE;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment