Fix error messages for AL_STEREO_MODE_SOFT
This commit is contained in:
parent
7e485051c1
commit
cdae6de689
@ -1582,7 +1582,7 @@ void SetSourceiv(ALsource *Source, ALCcontext *Context, SourceProp prop,
|
|||||||
{
|
{
|
||||||
Source->mDistanceModel = *model;
|
Source->mDistanceModel = *model;
|
||||||
if(Context->mSourceDistanceModel)
|
if(Context->mSourceDistanceModel)
|
||||||
return UpdateSourceProps(Source, Context);
|
UpdateSourceProps(Source, Context);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Context->setError(AL_INVALID_VALUE, "Distance model out of range: 0x%04x", values[0]);
|
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))};
|
const ALenum state{GetSourceState(Source, GetSourceVoice(Source, Context))};
|
||||||
if(state == AL_PLAYING || state == AL_PAUSED)
|
if(state == AL_PLAYING || state == AL_PAUSED)
|
||||||
SETERR_RETURN(Context, AL_INVALID_OPERATION,,
|
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]))
|
if(auto mode = StereoModeFromEnum(values[0]))
|
||||||
{
|
{
|
||||||
Source->mStereoMode = *mode;
|
Source->mStereoMode = *mode;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Context->setError(AL_INVALID_VALUE, "Unsupported AL_STEREO_MODE_SOFT: 0x%04x\n",
|
||||||
|
values[0]);
|
||||||
return;
|
return;
|
||||||
|
|
||||||
case AL_AUXILIARY_SEND_FILTER:
|
case AL_AUXILIARY_SEND_FILTER:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user