Support DSBPLAY_SYNCHPLAYBACK flag to SoundBuffer::Play()

This commit is contained in:
Echelon9 2013-07-22 14:22:12 +10:00
parent d5834a5e3d
commit e43e20129b
2 changed files with 2 additions and 1 deletions

View File

@ -1451,7 +1451,7 @@ HRESULT WINAPI XTL::EmuIDirectSoundBuffer8_Play
");\n",
GetCurrentThreadId(), pThis, dwReserved1, dwReserved2, dwFlags);
if(dwFlags & ~(X_DSBPLAY_LOOPING | X_DSBPLAY_FROMSTART))
if(dwFlags & ~(X_DSBPLAY_LOOPING | X_DSBPLAY_FROMSTART | X_DSBPLAY_SYNCHPLAYBACK))
CxbxKrnlCleanup("Unsupported Playing Flags");
// rewind buffer

View File

@ -44,6 +44,7 @@
// EmuIDirectSoundBuffer8_Play flags
#define X_DSBPLAY_LOOPING 0x00000001
#define X_DSBPLAY_FROMSTART 0x00000002
#define X_DSBPLAY_SYNCHPLAYBACK 0x00000004
// EmuIDirectSoundBuffer8_Pause flags
#define X_DSBPAUSE_RESUME 0x00000000