mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 07:53:26 +00:00
Fixed reading WAV files with odd chunk sizes.
These require a padding byte not included in the chunk size.
(cherry picked from commit 29810376b8
)
This commit is contained in:
parent
4ddcfb5fb3
commit
b642489dc4
1 changed files with 3 additions and 1 deletions
|
@ -292,7 +292,9 @@ Error ResourceImporterWAV::import(const String &p_source_file, const String &p_s
|
|||
loop_end = file->get_32();
|
||||
}
|
||||
}
|
||||
file->seek(file_pos + chunksize);
|
||||
// Move to the start of the next chunk. Note that RIFF requires a padding byte for odd
|
||||
// chunk sizes.
|
||||
file->seek(file_pos + chunksize + (chunksize & 1));
|
||||
}
|
||||
|
||||
// STEP 2, APPLY CONVERSIONS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue