Go to file
Sebastian Lohff fe967b96b9 Make wav downloadable on web
The "Write Wav" button now lets the user download the resulting wav file
on web. Sadly, we cannot directly get a PackedByteArray from
AudioStreamWAV - the WAV header is only written as part of its
save_to_wav() method, which only accepts a string to a file and does all
the file handling itself. Therefore we now write the file to (temp)
disk, re-read it and then send it to the user. The other options I
currently see are a) to write the WAV header myself b) find a better way
to write a tempfile (at least tempfile naming seems to be a Godot >4.3
feature) or c) to contribute a get_wav_header() method AudioStreamWAV
upstream.

The "standardized" mimetype for wav seems to be audio/vnd.wave and not
audio/wav - I never knew! Many seem to point to RFC2361 regarding to
this.
2025-02-08 13:26:59 +01:00
autoloads Switch direction of MorseState state array 2025-02-03 01:49:46 +01:00
scenes Make wav downloadable on web 2025-02-08 13:26:59 +01:00
.gitattributes Working CW tool 2025-02-01 01:47:11 +01:00
.gitignore Working CW tool 2025-02-01 01:47:11 +01:00
export_presets.cfg Make MorseBanner render in editor 2025-02-08 13:26:13 +01:00
icon.svg Working CW tool 2025-02-01 01:47:11 +01:00
icon.svg.import Working CW tool 2025-02-01 01:47:11 +01:00
project.godot Android export + portrait orientation 2025-02-08 13:23:13 +01:00