From cdae6de6891f783fc5089ff82b9284f4a2c71e5b Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 13 Feb 2022 20:10:22 -0800 Subject: Fix error messages for AL_STEREO_MODE_SOFT --- al/source.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'al/source.cpp') diff --git a/al/source.cpp b/al/source.cpp index 1c043124..08b8246b 100644 --- a/al/source.cpp +++ b/al/source.cpp @@ -1582,7 +1582,7 @@ void SetSourceiv(ALsource *Source, ALCcontext *Context, SourceProp prop, { Source->mDistanceModel = *model; if(Context->mSourceDistanceModel) - return UpdateSourceProps(Source, Context); + UpdateSourceProps(Source, Context); return; } Context->setError(AL_INVALID_VALUE, "Distance model out of range: 0x%04x", values[0]); @@ -1612,13 +1612,15 @@ void SetSourceiv(ALsource *Source, ALCcontext *Context, SourceProp prop, const ALenum state{GetSourceState(Source, GetSourceVoice(Source, Context))}; if(state == AL_PLAYING || state == AL_PAUSED) SETERR_RETURN(Context, AL_INVALID_OPERATION,, - "Setting buffer on playing or paused source %u", Source->id); + "Modifying stereo mode on playing or paused source %u", Source->id); } if(auto mode = StereoModeFromEnum(values[0])) { Source->mStereoMode = *mode; return; } + Context->setError(AL_INVALID_VALUE, "Unsupported AL_STEREO_MODE_SOFT: 0x%04x\n", + values[0]); return; case AL_AUXILIARY_SEND_FILTER: -- cgit v1.2.3