diff options
author | Chris Robinson <[email protected]> | 2022-02-13 20:10:22 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2022-02-13 20:10:22 -0800 |
commit | cdae6de6891f783fc5089ff82b9284f4a2c71e5b (patch) | |
tree | 8f09c4089341b7586d523887aba39d7090856823 | |
parent | 7e485051c1670339ee56e30a7364273ebbe7f9b1 (diff) |
Fix error messages for AL_STEREO_MODE_SOFT
-rw-r--r-- | al/source.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
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: |