Replaced getDeclaredConstructor with constructors

This commit is contained in:
Pazaz 2022-04-28 02:41:20 -04:00
parent fd3572f709
commit 37883b9f35
7 changed files with 7 additions and 19 deletions

View file

@ -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);