clamp pan value between -1.0 and 1.0
parent
609edc4e10
commit
c9614cd386
|
@ -577,6 +577,7 @@ double FAudioGMS_StaticSound_LoadWAV(char *filePath)
|
|||
|
||||
static void FAudioGMS_INTERNAL_SoundInstance_SetPan(FAudioGMS_SoundInstance* instance, float pan)
|
||||
{
|
||||
pan = SDL_max(-1.0, SDL_min(1.0, pan));
|
||||
instance->pan = pan;
|
||||
SetPanMatrixCoefficients(instance);
|
||||
|
||||
|
|
Loading…
Reference in New Issue