mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2026-08-22 02:45:14 -06:00
Renamed PcmResampler
This commit is contained in:
parent
45f3a834f7
commit
ac4878cf51
3 changed files with 23 additions and 23 deletions
|
|
@ -40,14 +40,14 @@ public final class PcmSound extends Sound {
|
|||
}
|
||||
|
||||
@OriginalMember(owner = "client!kj", name = "a", descriptor = "(Lclient!vj;)Lclient!kj;")
|
||||
public final PcmSound resample(@OriginalArg(0) Resampler arg0) {
|
||||
public final PcmSound resample(@OriginalArg(0) PcmResampler arg0) {
|
||||
this.samples = arg0.method4520(this.samples);
|
||||
this.rate = arg0.method4524(this.rate);
|
||||
this.rate = arg0.scaleRate(this.rate);
|
||||
if (this.start == this.end) {
|
||||
this.start = this.end = arg0.method4525(this.start);
|
||||
this.start = this.end = arg0.scalePosition(this.start);
|
||||
} else {
|
||||
this.start = arg0.method4525(this.start);
|
||||
this.end = arg0.method4525(this.end);
|
||||
this.start = arg0.scalePosition(this.start);
|
||||
this.end = arg0.scalePosition(this.end);
|
||||
if (this.start == this.end) {
|
||||
this.start--;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue