use of javax.sound.sampled.DataLine.Info in project runelite by runelite.
the class SourceDataSoundSystem method create.
@ObfuscatedName("i")
@ObfuscatedSignature(signature = "(II)V", garbageValue = "1217716284")
@Export("create")
protected void create(int var1) throws LineUnavailableException {
try {
Info var2 = new Info(SourceDataLine.class, this.audioFormat, var1 << (UnitPriceComparator.audioHighMemory ? 2 : 1));
this.source = (SourceDataLine) AudioSystem.getLine(var2);
this.source.open();
this.source.start();
this.size = var1;
} catch (LineUnavailableException var5) {
int var4 = (var1 >>> 1 & 1431655765) + (var1 & 1431655765);
var4 = (var4 >>> 2 & 858993459) + (var4 & 858993459);
var4 = (var4 >>> 4) + var4 & 252645135;
var4 += var4 >>> 8;
var4 += var4 >>> 16;
int var3 = var4 & 255;
if (var3 != 1) {
this.create(WallObject.nextPowerOfTwo(var1));
} else {
this.source = null;
throw var5;
}
}
}
Aggregations