summaryrefslogtreecommitdiffstats
path: root/editor/audio_stream_preview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'editor/audio_stream_preview.cpp')
-rw-r--r--editor/audio_stream_preview.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/editor/audio_stream_preview.cpp b/editor/audio_stream_preview.cpp
index 0b9289ff06..8dd4820c4e 100644
--- a/editor/audio_stream_preview.cpp
+++ b/editor/audio_stream_preview.cpp
@@ -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);