Refactor bufer to buffer
This commit is contained in:
parent
87dbb716d9
commit
83f5d7e40a
8 changed files with 17 additions and 17 deletions
|
|
@ -191,12 +191,12 @@ void AudioStreamPlaybackRandomPitch::seek(float p_time) {
|
|||
}
|
||||
}
|
||||
|
||||
void AudioStreamPlaybackRandomPitch::mix(AudioFrame *p_bufer, float p_rate_scale, int p_frames) {
|
||||
void AudioStreamPlaybackRandomPitch::mix(AudioFrame *p_buffer, float p_rate_scale, int p_frames) {
|
||||
if (playing.is_valid()) {
|
||||
playing->mix(p_bufer, p_rate_scale * pitch_scale, p_frames);
|
||||
playing->mix(p_buffer, p_rate_scale * pitch_scale, p_frames);
|
||||
} else {
|
||||
for (int i = 0; i < p_frames; i++) {
|
||||
p_bufer[i] = AudioFrame(0, 0);
|
||||
p_buffer[i] = AudioFrame(0, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue