More refactoring (tm)
This commit is contained in:
@@ -55,11 +55,11 @@ public class SoundEnvelope {
|
||||
signature = "(Lgr;)V"
|
||||
)
|
||||
@Export("decode")
|
||||
final void decode(Buffer var1) {
|
||||
this.form = var1.readUnsignedByte();
|
||||
this.start = var1.readInt();
|
||||
this.end = var1.readInt();
|
||||
this.decodeSegments(var1);
|
||||
final void decode(Buffer buffer) {
|
||||
this.form = buffer.readUnsignedByte();
|
||||
this.start = buffer.readInt();
|
||||
this.end = buffer.readInt();
|
||||
this.decodeSegments(buffer);
|
||||
}
|
||||
|
||||
@ObfuscatedName("f")
|
||||
@@ -67,14 +67,14 @@ public class SoundEnvelope {
|
||||
signature = "(Lgr;)V"
|
||||
)
|
||||
@Export("decodeSegments")
|
||||
final void decodeSegments(Buffer var1) {
|
||||
this.segments = var1.readUnsignedByte();
|
||||
final void decodeSegments(Buffer buffer) {
|
||||
this.segments = buffer.readUnsignedByte();
|
||||
this.durations = new int[this.segments];
|
||||
this.phases = new int[this.segments];
|
||||
|
||||
for (int var2 = 0; var2 < this.segments; ++var2) {
|
||||
this.durations[var2] = var1.readUnsignedShort();
|
||||
this.phases[var2] = var1.readUnsignedShort();
|
||||
this.durations[var2] = buffer.readUnsignedShort();
|
||||
this.phases[var2] = buffer.readUnsignedShort();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user