mirror of
https://github.com/reactos/reactos.git
synced 2024-09-12 05:43:24 +00:00
[PORTCLS]
- Reset play position when an audio stream is stopped -- Fixes playback in looped mode (DirectSound) when a buffer is played&stopped more than once svn path=/trunk/; revision=45585
This commit is contained in:
parent
5974fe1781
commit
ff9fdc8259
|
@ -450,10 +450,14 @@ PinWaveCyclicState(
|
||||||
// FIXME
|
// FIXME
|
||||||
// complete with successful state
|
// complete with successful state
|
||||||
Pin->m_IrpQueue->CancelBuffers();
|
Pin->m_IrpQueue->CancelBuffers();
|
||||||
|
Pin->m_Position.PlayOffset = 0;
|
||||||
|
Pin->m_Position.WriteOffset = 0;
|
||||||
}
|
}
|
||||||
else if (Pin->m_State == KSSTATE_STOP)
|
else if (Pin->m_State == KSSTATE_STOP)
|
||||||
{
|
{
|
||||||
Pin->m_IrpQueue->CancelBuffers();
|
Pin->m_IrpQueue->CancelBuffers();
|
||||||
|
Pin->m_Position.PlayOffset = 0;
|
||||||
|
Pin->m_Position.WriteOffset = 0;
|
||||||
}
|
}
|
||||||
// store result
|
// store result
|
||||||
Irp->IoStatus.Information = sizeof(KSSTATE);
|
Irp->IoStatus.Information = sizeof(KSSTATE);
|
||||||
|
|
Loading…
Reference in a new issue