mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-28 06:41:15 +00:00
DSBCAPS_GLOBALFOCUS allows sound to still play when the application is in the background. Other backends do this, so why not let dsound do it too.
This commit is contained in:
parent
911d73d85a
commit
fafdc4fcef
@ -28,7 +28,7 @@ bool DSound::CreateBuffer()
|
|||||||
|
|
||||||
// Fill out DSound buffer description.
|
// Fill out DSound buffer description.
|
||||||
dsbdesc.dwSize = sizeof(DSBUFFERDESC);
|
dsbdesc.dwSize = sizeof(DSBUFFERDESC);
|
||||||
dsbdesc.dwFlags = DSBCAPS_GETCURRENTPOSITION2 | DSBCAPS_STICKYFOCUS | DSBCAPS_CTRLVOLUME;
|
dsbdesc.dwFlags = DSBCAPS_GETCURRENTPOSITION2 | DSBCAPS_CTRLVOLUME | DSBCAPS_GLOBALFOCUS;
|
||||||
dsbdesc.dwBufferBytes = bufferSize = BUFSIZE;
|
dsbdesc.dwBufferBytes = bufferSize = BUFSIZE;
|
||||||
dsbdesc.lpwfxFormat = (WAVEFORMATEX *)&pcmwf;
|
dsbdesc.lpwfxFormat = (WAVEFORMATEX *)&pcmwf;
|
||||||
dsbdesc.guid3DAlgorithm = DS3DALG_DEFAULT;
|
dsbdesc.guid3DAlgorithm = DS3DALG_DEFAULT;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user