diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2022-03-15 16:09:39 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2022-03-15 16:16:09 +0100 |
commit | b389ce5ccd664c993772a0b71ba99a875106b523 (patch) | |
tree | 44c38b340b5fdb883d227f10e579adee45d7bfcf /scene/resources/audio_stream_sample.h | |
parent | 51bbcbdec2f971ed0113992b34335ef3c9873e79 (diff) |
ResourceImporterWAV: Allow configuring loop mode on import
The new `edit/loop_mode` import options lets user choose to either:
- Detect loop points from the WAV (default, same behavior as before)
- Set the loop mode and loop points manually like in AudioStreamSample
Fixes #46164.
Diffstat (limited to 'scene/resources/audio_stream_sample.h')
-rw-r--r-- | scene/resources/audio_stream_sample.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/resources/audio_stream_sample.h b/scene/resources/audio_stream_sample.h index 043a62ff70..357febc27a 100644 --- a/scene/resources/audio_stream_sample.h +++ b/scene/resources/audio_stream_sample.h @@ -89,6 +89,7 @@ public: FORMAT_IMA_ADPCM }; + // Keep the ResourceImporterWAV `edit/loop_mode` enum hint in sync with these options. enum LoopMode { LOOP_DISABLED, LOOP_FORWARD, |