mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +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:
@@ -450,10 +450,14 @@ PinWaveCyclicState(
|
||||
// FIXME
|
||||
// complete with successful state
|
||||
Pin->m_IrpQueue->CancelBuffers();
|
||||
Pin->m_Position.PlayOffset = 0;
|
||||
Pin->m_Position.WriteOffset = 0;
|
||||
}
|
||||
else if (Pin->m_State == KSSTATE_STOP)
|
||||
{
|
||||
Pin->m_IrpQueue->CancelBuffers();
|
||||
Pin->m_Position.PlayOffset = 0;
|
||||
Pin->m_Position.WriteOffset = 0;
|
||||
}
|
||||
// store result
|
||||
Irp->IoStatus.Information = sizeof(KSSTATE);
|
||||
|
||||
Reference in New Issue
Block a user