Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix AudioStreamWAV::save_to_wav adding extra '.wav' to file if existing ext is not lower case #98717

Merged
merged 1 commit into from
Nov 10, 2024

Conversation

nikitalita
Copy link
Contributor

@nikitalita nikitalita commented Nov 1, 2024

Fixes #98719

Pretty simple: if the file_path passed in contains an upper-case extension (e.g. ".WAV"), it would add an extra ".wav" on top of that. A simple .to_lower() fixes this.

@nikitalita nikitalita requested review from a team as code owners November 1, 2024 02:37
@fire fire changed the title fix AudioStreamWAV::save_to_wav adding extra '.wav' to file if existing ext is not lower case Fix AudioStreamWAV::save_to_wav adding extra '.wav' to file if existing ext is not lower case Nov 1, 2024
@nikitalita nikitalita force-pushed the fix-save-to-wav-caps branch from 1407fdb to 08db8ed Compare November 1, 2024 11:11
@AThousandShips AThousandShips added cherrypick:4.2 Considered for cherry-picking into a future 4.2.x release cherrypick:4.3 Considered for cherry-picking into a future 4.3.x release labels Nov 1, 2024
@AThousandShips AThousandShips added this to the 4.4 milestone Nov 1, 2024
@Repiteo Repiteo merged commit 3882ed5 into godotengine:master Nov 10, 2024
20 checks passed
@Repiteo
Copy link
Contributor

Repiteo commented Nov 10, 2024

Thanks!

@akien-mga akien-mga removed the cherrypick:4.2 Considered for cherry-picking into a future 4.2.x release label Mar 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug cherrypick:4.3 Considered for cherry-picking into a future 4.3.x release topic:audio
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AudioStreamWAV::save_to_wav adding extra '.wav' to file if existing ext is not lower case
8 participants