Fixed: Availability of DirectSound 8 functions differs between versions.

hg/feature/sound
kaetemi@users.sourceforge.net 15 years ago
parent 4d3a73dfc4
commit 318c2d4f6f

@ -219,9 +219,17 @@ bool GetHardwareSoundBuffer ()
HardwareSoundBuffer = 0;
// The DirectSound object
LPDIRECTSOUND8 _DirectSound;
#if (DIRECTSOUND_VERSION >= 0x0800)
LPDIRECTSOUND8 _DirectSound;
#else
LPDIRECTSOUND _DirectSound;
#endif
#if (DIRECTSOUND_VERSION >= 0x0800)
if (DirectSoundCreate8(NULL, &_DirectSound, NULL) == DS_OK)
#else
if (DirectSoundCreate(NULL, &_DirectSound, NULL) == DS_OK)
#endif
{
DSCAPS caps;
memset (&caps, 0, sizeof (DSCAPS));

Loading…
Cancel
Save