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:
RadWolfie 2017-06-24 13:04:56 -05:00
parent 836376c0a1
commit a3872923a7
1 changed files with 3 additions and 3 deletions

View File

@ -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;
}