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
No known key found for this signature in database
GPG key ID: 2033189A662F8BD7
20 changed files with 154 additions and 136 deletions

View file

@ -666,11 +666,11 @@ Ref<Texture2D> EditorAudioStreamPreviewPlugin::generate(const Ref<Resource> &p_f
}
for (int j = from; j < to; j++) {
max = MAX(max, frames[j].l);
max = MAX(max, frames[j].r);
max = MAX(max, frames[j].left);
max = MAX(max, frames[j].right);
min = MIN(min, frames[j].l);
min = MIN(min, frames[j].r);
min = MIN(min, frames[j].left);
min = MIN(min, frames[j].right);
}
int pfrom = CLAMP((min * 0.5 + 0.5) * h / 2, 0, h / 2) + h / 4;