mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-29 18:34:42 +00:00
Empty sound data fix
This commit is contained in:
@@ -214,11 +214,13 @@ public class SoundFormat {
|
||||
byte[] decodedData = baos.toByteArray();
|
||||
if (skipSamples > 0) {
|
||||
byte[] data = decodedData;
|
||||
data = Arrays.copyOfRange(
|
||||
data,
|
||||
skipSamples * 2 * (stereo ? 2 : 1),
|
||||
data.length
|
||||
);
|
||||
if (data.length > 0) {
|
||||
data = Arrays.copyOfRange(
|
||||
data,
|
||||
skipSamples * 2 * (stereo ? 2 : 1),
|
||||
data.length
|
||||
);
|
||||
}
|
||||
return data;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user