aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/dsound.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2009-12-28 13:08:15 -0800
committerChris Robinson <[email protected]>2009-12-28 13:08:15 -0800
commit69ab93a8240d6272c3fbd86e65b7baca516ec8de (patch)
tree6d257345dc5eee5dd6a8324ce774aa18b7890e50 /Alc/dsound.c
parent179b660eee8cfc958057cb237019a939c3361fbb (diff)
Add a function to check if a config option is set to a non-empty value
Diffstat (limited to 'Alc/dsound.c')
-rw-r--r--Alc/dsound.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/dsound.c b/Alc/dsound.c
index 63047824..ac54b487 100644
--- a/Alc/dsound.c
+++ b/Alc/dsound.c
@@ -280,7 +280,7 @@ static ALCboolean DSoundResetPlayback(ALCdevice *device)
memset(&OutputType, 0, sizeof(OutputType));
hr = IDirectSound_GetSpeakerConfig(pData->lpDS, &speakers);
- if(SUCCEEDED(hr) && *(GetConfigValue(NULL, "format", "")) != 0)
+ if(SUCCEEDED(hr) && ConfigValueExists(NULL, "format"))
{
if(aluChannelsFromFormat(device->Format) == 1)
speakers = DSSPEAKER_COMBINED(DSSPEAKER_MONO, 0);