mirror of
https://github.com/godotengine/godot.git
synced 2024-11-24 05:04:10 +00:00
Fixed reading WAV files with odd chunk sizes.
These require a padding byte not included in the chunk size.
This commit is contained in:
parent
d76c1d0e51
commit
29810376b8
@ -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…
Reference in New Issue
Block a user