-
-
Notifications
You must be signed in to change notification settings - Fork 22k
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
WAV stream/importer: Improve compression/loop names and descriptions #96174
Conversation
doc/classes/ResourceImporterWAV.xml
Outdated
[b]Ping-Pong:[/b] Play audio forward until it's done playing, then play it backward and repeat. This is similar to mirrored texture repeat, but for audio. | ||
[b]Backward:[/b] Play audio in reverse and loop back to the end when done playing. | ||
Controls how audio should loop. | ||
- [b]Detect From WAV:[/b] Uses loop information from the WAV metadata. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
doc/classes/ResourceImporterWAV.xml
Outdated
- [b]Detect From WAV:[/b] Uses loop information from the WAV metadata. | ||
- [b]Disabled:[/b] Don't loop audio, even if metadata indicates the file playback should loop. | ||
- [b]Forward:[/b] Standard audio looping. Plays the audio forward from the begin point to the end point, then loops back. | ||
- [b]Ping-Pong:[/b] Plays the audio forward until the end point, then backwards to the begin point, repeating this cycle. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Goodness me I hated that comparison with texture repeat. This is not criticism to this PR.
Small note, in some languages "cycle" and "loop" would be translated to the same thing. Maybe saying "then it repeats" would be more appropriate.
d01e3b2
to
78c7f3a
Compare
Small correction on loop forward description: it always starts at the absolute beginning of the file (position 0), plays all the way to |
Forgot a few names in |
@@ -90,7 +90,7 @@ void ResourceImporterWAV::get_import_options(const String &p_path, List<ImportOp | |||
r_options->push_back(ImportOption(PropertyInfo(Variant::INT, "edit/loop_mode", PROPERTY_HINT_ENUM, "Detect From WAV,Disabled,Forward,Ping-Pong,Backward", PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_UPDATE_ALL_IF_MODIFIED), 0)); | |||
r_options->push_back(ImportOption(PropertyInfo(Variant::INT, "edit/loop_begin"), 0)); | |||
r_options->push_back(ImportOption(PropertyInfo(Variant::INT, "edit/loop_end"), -1)); | |||
r_options->push_back(ImportOption(PropertyInfo(Variant::INT, "compress/mode", PROPERTY_HINT_ENUM, "Disabled,RAM (Ima-ADPCM),QOA (Quite OK Audio)"), 0)); | |||
r_options->push_back(ImportOption(PropertyInfo(Variant::INT, "compress/mode", PROPERTY_HINT_ENUM, "PCM,IMA ADPCM,Quite OK Audio"), 0)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the many users who aren't particularly familiar with WAV format compression, I think it would still be worth to make it clear which of those is uncompressed (which users may understand intuitively to be bigger but faster on CPU).
r_options->push_back(ImportOption(PropertyInfo(Variant::INT, "compress/mode", PROPERTY_HINT_ENUM, "PCM,IMA ADPCM,Quite OK Audio"), 0)); | |
r_options->push_back(ImportOption(PropertyInfo(Variant::INT, "compress/mode", PROPERTY_HINT_ENUM, "PCM (Uncompressed),IMA ADPCM,Quite OK Audio"), 0)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Thanks! |
Detect From WAV
on description.Before:
After: