Refactor bufer to buffer

This commit is contained in:
Poommetee Ketson 2017-10-28 19:04:25 +07:00
parent 87dbb716d9
commit 83f5d7e40a
8 changed files with 17 additions and 17 deletions

View file

@ -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);
}
}
}