mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 06:11:29 +03:00
committed by
Rémi Verschelde
parent
b5f1f7dfde
commit
b9b53966a3
@@ -258,7 +258,7 @@ void AudioStreamPlaybackSample::mix(AudioFrame *p_buffer, float p_rate_scale, in
|
||||
float srate = base->mix_rate;
|
||||
srate *= p_rate_scale;
|
||||
float fincrement = srate / base_rate;
|
||||
int32_t increment = int32_t(fincrement * MIX_FRAC_LEN);
|
||||
int32_t increment = int32_t(MAX(fincrement * MIX_FRAC_LEN, 1));
|
||||
increment *= sign;
|
||||
|
||||
//looping
|
||||
|
||||
Reference in New Issue
Block a user