mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-22 14:56:13 +00:00
Fixed: Availability of DirectSound 8 functions differs between versions.
This commit is contained in:
parent
bcecc2f870
commit
644a0e052c
1 changed files with 9 additions and 1 deletions
|
@ -219,9 +219,17 @@ bool GetHardwareSoundBuffer ()
|
||||||
HardwareSoundBuffer = 0;
|
HardwareSoundBuffer = 0;
|
||||||
|
|
||||||
// The DirectSound object
|
// The DirectSound object
|
||||||
|
#if (DIRECTSOUND_VERSION >= 0x0800)
|
||||||
LPDIRECTSOUND8 _DirectSound;
|
LPDIRECTSOUND8 _DirectSound;
|
||||||
|
#else
|
||||||
|
LPDIRECTSOUND _DirectSound;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if (DIRECTSOUND_VERSION >= 0x0800)
|
||||||
if (DirectSoundCreate8(NULL, &_DirectSound, NULL) == DS_OK)
|
if (DirectSoundCreate8(NULL, &_DirectSound, NULL) == DS_OK)
|
||||||
|
#else
|
||||||
|
if (DirectSoundCreate(NULL, &_DirectSound, NULL) == DS_OK)
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
DSCAPS caps;
|
DSCAPS caps;
|
||||||
memset (&caps, 0, sizeof (DSCAPS));
|
memset (&caps, 0, sizeof (DSCAPS));
|
||||||
|
|
Loading…
Reference in a new issue