Commit ff77f134 authored by Robert Reif's avatar Robert Reif Committed by Alexandre Julliard

Initialize primary buffer on open.

parent 6f3228a5
......@@ -132,6 +132,9 @@ static HRESULT DSOUND_PrimaryOpen(IDirectSoundImpl *This)
if (This->state == STATE_PLAYING) This->state = STATE_STARTING;
else if (This->state == STATE_STOPPING) This->state = STATE_STOPPED;
This->playpos = 0;
This->mixpos = 0;
FillMemory(This->buffer, This->buflen, (This->pwfx->wBitsPerSample == 8) ? 128 : 0);
}
return err;
......
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