From 69ab93a8240d6272c3fbd86e65b7baca516ec8de Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 28 Dec 2009 13:08:15 -0800 Subject: Add a function to check if a config option is set to a non-empty value --- Alc/dsound.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Alc/dsound.c') 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); -- cgit v1.2.3