1
0
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:
A Thousand Ships
2024-01-09 15:01:12 +01:00
parent dfe226b933
commit d8b29efe66
20 changed files with 154 additions and 136 deletions

View File

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