More refactoring (tm)
This commit is contained in:
@@ -41,14 +41,14 @@ public class RawSound extends AbstractSound {
|
||||
signature = "(Ldp;)Lcx;"
|
||||
)
|
||||
@Export("resample")
|
||||
public RawSound resample(Decimator var1) {
|
||||
this.samples = var1.resample(this.samples);
|
||||
this.sampleRate = var1.scaleRate(this.sampleRate);
|
||||
public RawSound resample(Decimator decimator) {
|
||||
this.samples = decimator.resample(this.samples);
|
||||
this.sampleRate = decimator.scaleRate(this.sampleRate);
|
||||
if (this.start == this.end) {
|
||||
this.start = this.end = var1.scalePosition(this.start);
|
||||
this.start = this.end = decimator.scalePosition(this.start);
|
||||
} else {
|
||||
this.start = var1.scalePosition(this.start);
|
||||
this.end = var1.scalePosition(this.end);
|
||||
this.start = decimator.scalePosition(this.start);
|
||||
this.end = decimator.scalePosition(this.end);
|
||||
if (this.start == this.end) {
|
||||
--this.start;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user