You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 12:50:35 +00:00
Fix member names of AudioFrame to match extension
This commit is contained in:
@@ -143,11 +143,11 @@ void AudioStreamPreviewGenerator::_preview_thread(void *p_preview) {
|
||||
}
|
||||
|
||||
for (int j = from; j < to; j++) {
|
||||
max = MAX(max, mix_chunk[j].l);
|
||||
max = MAX(max, mix_chunk[j].r);
|
||||
max = MAX(max, mix_chunk[j].left);
|
||||
max = MAX(max, mix_chunk[j].right);
|
||||
|
||||
min = MIN(min, mix_chunk[j].l);
|
||||
min = MIN(min, mix_chunk[j].r);
|
||||
min = MIN(min, mix_chunk[j].left);
|
||||
min = MIN(min, mix_chunk[j].right);
|
||||
}
|
||||
|
||||
uint8_t pfrom = CLAMP((min * 0.5 + 0.5) * 255, 0, 255);
|
||||
|
||||
Reference in New Issue
Block a user