Play Should Be Using Play Flags
Oops... And fix a trigger for X_DSBPLAY_FROMSTART to be check "if" properly. This fix no audio from Psyvariar 2 - Extend Edition gameplay. 🎉 👍
This commit is contained in:
parent
836376c0a1
commit
a3872923a7
|
@ -677,7 +677,7 @@ inline HRESULT HybridDirectSoundBuffer_Play(
|
|||
CxbxKrnlCleanup("Unsupported Playing Flags");
|
||||
}
|
||||
// rewind buffer
|
||||
if ((dwFlags & X_DSBPLAY_FROMSTART) != X_DSBPLAY_FROMSTART) {
|
||||
if ((dwFlags & X_DSBPLAY_FROMSTART)) {
|
||||
if (FAILED(pDSBuffer->SetCurrentPosition(0))) {
|
||||
EmuWarning("Rewinding buffer failed!");
|
||||
}
|
||||
|
@ -685,8 +685,8 @@ inline HRESULT HybridDirectSoundBuffer_Play(
|
|||
dwFlags &= ~X_DSBPLAY_FROMSTART;
|
||||
}
|
||||
|
||||
if (dwFlags & X_DSBPAUSE_SYNCHPLAYBACK) {
|
||||
dwFlags ^= X_DSBPAUSE_SYNCHPLAYBACK;
|
||||
if (dwFlags & X_DSBPLAY_SYNCHPLAYBACK) {
|
||||
dwFlags ^= X_DSBPLAY_SYNCHPLAYBACK;
|
||||
dwEmuFlags |= DSB_FLAG_SYNCHPLAYBACK_CONTROL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue