META-INF.modules.java.desktop.classes.com.sun.media.sound.AudioFileSoundbankReader.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java.desktop Show documentation
Show all versions of java.desktop Show documentation
Bytecoder java.desktop Module
???? : ?
$javax/sound/midi/spi/SoundbankReader ()V
javax/sound/sampled/AudioSystem getAudioInputStream 6(Ljava/net/URL;)Ljavax/sound/sampled/AudioInputStream;
,com/sun/media/sound/AudioFileSoundbankReader getSoundbank D(Ljavax/sound/sampled/AudioInputStream;)Ljavax/sound/midi/Soundbank;
$javax/sound/sampled/AudioInputStream close 1javax/sound/sampled/UnsupportedAudioFileException java/io/IOException
! java/io/InputStream mark (I)V
# $ =(Ljava/io/InputStream;)Ljavax/sound/sampled/AudioInputStream;
& ' reset
) * + getFrameLength ()J???????? / java/io/ByteArrayOutputStream
.
2 3 4 getFormat #()Ljavax/sound/sampled/AudioFormat;
6 7 8 9 : javax/sound/sampled/AudioFormat getFrameSize ()I
< = > read ([B)I
. @ A B write ([BII)V
. D E F toByteArray ()[B H java/io/DataInputStream
G J K (Ljava/io/InputStream;)V
G M N O readFully ([B)V Q ,com/sun/media/sound/ModelByteBufferWavetable S #com/sun/media/sound/ModelByteBuffer
R U OŖ
P X Y J(Lcom/sun/media/sound/ModelByteBuffer;Ljavax/sound/sampled/AudioFormat;F)V [ "com/sun/media/sound/ModelPerformer
Z
Z ^ _ ` getOscillators ()Ljava/util/List; b c d e f java/util/List add (Ljava/lang/Object;)Z h #com/sun/media/sound/SimpleSoundbank
g k $com/sun/media/sound/SimpleInstrument
j
j n e o '(Lcom/sun/media/sound/ModelPerformer;)V
g q r s
addInstrument (Ljavax/sound/midi/Instrument;)V u java/lang/Exception
w x 6(Ljava/io/File;)Ljavax/sound/sampled/AudioInputStream;
z { | } + java/io/File length
R ? (Ljava/io/File;JJ)V
P ? ? )(Lcom/sun/media/sound/ModelByteBuffer;F)V Code LineNumberTable LocalVariableTable this .Lcom/sun/media/sound/AudioFileSoundbankReader; ,(Ljava/net/URL;)Ljavax/sound/midi/Soundbank; ais &Ljavax/sound/sampled/AudioInputStream; sbk Ljavax/sound/midi/Soundbank; e 3Ljavax/sound/sampled/UnsupportedAudioFileException; Ljava/io/IOException; url Ljava/net/URL;
StackMapTable
Exceptions ? )javax/sound/midi/InvalidMidiDataException 3(Ljava/io/InputStream;)Ljavax/sound/midi/Soundbank; stream Ljava/io/InputStream; baos Ljava/io/ByteArrayOutputStream; buff [B ret I buffer osc .Lcom/sun/media/sound/ModelByteBufferWavetable; performer $Lcom/sun/media/sound/ModelPerformer; %Lcom/sun/media/sound/SimpleSoundbank; ins &Lcom/sun/media/sound/SimpleInstrument; Ljava/lang/Exception; ? ,(Ljava/io/File;)Ljavax/sound/midi/Soundbank; e1 file Ljava/io/File;
SourceFile AudioFileSoundbankReader.java 1 ? / *? ? ? . ? ? ? ? ? ? +? M*,?
N,? -?M?M? ? " 4 5 6 7 8 9 : ; ? > ? ? ? ? ? ? ? ? ? ? ? ? ?
Q B ? ? ? ? ? &+ ? +? "M*,?
N-? -?? M? M+? %? ? . B D E F G J H J I K $ L ? * ? ? ? ? &