mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2026-08-23 19:35:15 -06:00
Replaced getDeclaredConstructor with constructors
This commit is contained in:
parent
fd3572f709
commit
37883b9f35
7 changed files with 7 additions and 19 deletions
|
|
@ -79,7 +79,7 @@ public class AudioChannel {
|
|||
throw new IllegalStateException();
|
||||
}
|
||||
try {
|
||||
@Pc(33) AudioChannel audioChannel = (AudioChannel) Class.forName("rt4.JavaAudioChannel").getDeclaredConstructor().newInstance();
|
||||
@Pc(33) AudioChannel audioChannel = new JavaAudioChannel();
|
||||
audioChannel.sampleRate2 = arg0;
|
||||
audioChannel.samples = new int[(stereo ? 2 : 1) * 256];
|
||||
audioChannel.init(arg2);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue