From c696d4dbb23461066ed741a36a83da10b6ad17f5 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 24 Aug 2011 14:24:48 -0700 Subject: Return an ALC error enum from the OpenPlayback backend method --- Alc/backends/null.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Alc/backends/null.c') diff --git a/Alc/backends/null.c b/Alc/backends/null.c index dd1ac216..7b501b58 100644 --- a/Alc/backends/null.c +++ b/Alc/backends/null.c @@ -73,20 +73,20 @@ static ALuint NullProc(ALvoid *ptr) return 0; } -static ALCboolean null_open_playback(ALCdevice *device, const ALCchar *deviceName) +static ALCenum null_open_playback(ALCdevice *device, const ALCchar *deviceName) { null_data *data; if(!deviceName) deviceName = nullDevice; else if(strcmp(deviceName, nullDevice) != 0) - return ALC_FALSE; + return ALC_INVALID_VALUE; data = (null_data*)calloc(1, sizeof(*data)); device->szDeviceName = strdup(deviceName); device->ExtraData = data; - return ALC_TRUE; + return ALC_NO_ERROR; } static void null_close_playback(ALCdevice *device) -- cgit v1.2.3