|
|
@ -69,7 +69,7 @@ inline float mapfloat(float val, float in_min, float in_max, float out_min, floa |
|
|
|
void AudioEffectStereoPanorama::panorama(float p) |
|
|
|
void AudioEffectStereoPanorama::panorama(float p) |
|
|
|
{ |
|
|
|
{ |
|
|
|
pan_r = mapfloat(p, 0.0, 1.0, -1.0, 1.0); |
|
|
|
pan_r = mapfloat(p, 0.0, 1.0, -1.0, 1.0); |
|
|
|
pan_l = pan_r * -1.0; |
|
|
|
pan_l = mapfloat(p, 0.0, 1.0, 1.0, -1.0); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void AudioEffectStereoPanorama::update(void) |
|
|
|
void AudioEffectStereoPanorama::update(void) |
|
|
|