You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Fix AudioStreamPolyphonic to honor AudioStreamPlayer.pitch_scale
This commit is contained in:
@@ -178,7 +178,7 @@ int AudioStreamPlaybackPolyphonic::mix(AudioFrame *p_buffer, float p_rate_scale,
|
||||
|
||||
while (todo) {
|
||||
int to_mix = MIN(todo, int(INTERNAL_BUFFER_LEN));
|
||||
int mixed = s.stream_playback->mix(internal_buffer, s.pitch_scale, to_mix);
|
||||
int mixed = s.stream_playback->mix(internal_buffer, p_rate_scale * s.pitch_scale, to_mix);
|
||||
|
||||
for (int i = 0; i < to_mix; i++) {
|
||||
p_buffer[offset + i] += internal_buffer[i] * volume;
|
||||
|
||||
Reference in New Issue
Block a user