mirror of
https://github.com/reactos/reactos.git
synced 2025-07-12 16:44:13 +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
1 changed files with 4 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue