AudioStreamWAV.mix_rate should be an int

...so we convert it!
This commit is contained in:
Sebastian Lohff 2025-03-16 15:38:04 +01:00
parent e7c269141c
commit 682c86576f
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ func _on_wav_button_pressed() -> void:
# save wav
var wav := AudioStreamWAV.new()
wav.format = AudioStreamWAV.FORMAT_8_BITS
wav.mix_rate = sample_hz
wav.mix_rate = int(sample_hz)
wav.stereo = false
wav.data = data