You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Audio Files referenced by AudiostreamPlayers are not deleted properly, instead are converted to wav file then formatted as text and saved in scene file
#87314
Open
Proggle opened this issue
Jan 17, 2024
· 2 comments
When removing an audio file (tested Wav, Ogg, and Mp3) from the project (right clicking on the filesystem tab and selecting delete) it warns if the file is a dependency, and says that it will be removed
However, while that exact file is removed, the data is NOT. Instead, the data gets saved in a much less compressed format and hid in the tscn files that reference it
Delete the mp3 from the file system in godot
Save the project.
Observe that main.tscn is now over 2 mb. Open it up, and see this ascii formatted byte array
I'd expect instead that deleting a file would either set references in nodes that include it to null, or leave them referencing an empty file and throw an error, rather than moving the data into the scene itself in a much less compressed format. If I'm deleting a mp3 from within godot I probably don't want it in my project at all, and I definitely expect it to make the filesize of my project smaller instead of bigger.
The text was updated successfully, but these errors were encountered:
Proggle
changed the title
Mp3s referenced by AudiostreamPlayers are not deleted properly, converted to wav file then formatted as text in scene
Mp3s referenced by AudiostreamPlayers are not deleted properly, instead are converted to wav file then formatted as text and saved in scene file
Jan 18, 2024
Can you reproduce this with WAV and Ogg Vorbis audio?
Yep, does it with those too, have updated title.
Proggle
changed the title
Mp3s referenced by AudiostreamPlayers are not deleted properly, instead are converted to wav file then formatted as text and saved in scene file
Audio Files referenced by AudiostreamPlayers are not deleted properly, instead are converted to wav file then formatted as text and saved in scene file
Jan 18, 2024
Tested versions
Tested it with v4.3.dev.gh-87058 [dab3ed5fc] as well as the latest stable.
System information
Godot v4.3.dev (dab3ed5fc) - Windows 10.0.22621 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 3080 (NVIDIA; 31.0.15.3770) - 12th Gen Intel(R) Core(TM) i9-12900 (24 Threads)
Issue description
When removing an audio file (tested Wav, Ogg, and Mp3) from the project (right clicking on the filesystem tab and selecting delete) it warns if the file is a dependency, and says that it will be removed
However, while that exact file is removed, the data is NOT. Instead, the data gets saved in a much less compressed format and hid in the tscn files that reference it
Steps to reproduce
Create a project with an Audiostreamplayer 2d
originalaudio.zip
Delete the mp3 from the file system in godot
Save the project.
Observe that main.tscn is now over 2 mb. Open it up, and see this ascii formatted byte array
I'd expect instead that deleting a file would either set references in nodes that include it to null, or leave them referencing an empty file and throw an error, rather than moving the data into the scene itself in a much less compressed format. If I'm deleting a mp3 from within godot I probably don't want it in my project at all, and I definitely expect it to make the filesize of my project smaller instead of bigger.
Minimal reproduction project (MRP)
wavConversion.zip
The text was updated successfully, but these errors were encountered: