com.badlogic.gdx.backends.android.AndroidAudio.class Maven / Gradle / Ivy
The newest version!
???? 2
B ? ?
? A ? ?
? A ? ?
? ? ? A ?
? ? ? ? ? ? ? ? ?
? ?
? ? ? ? ?
? ?
? ? ?
?
? ? ? ?
?
? ?
? ?
? ?
? ?
?
? ?
?
? ? ? ? ? ?
+ ? ?
+ ?
+ ? ?
+ ?
* ?
?
? ?
? ?
?
6 ? ?
? ?
; ?
?
?
?
? ? ? ? soundPool Landroid/media/SoundPool; manager Landroid/media/AudioManager; musics Ljava/util/List; Signature BLjava/util/List; (Landroid/app/Activity;)V Code LineNumberTable LocalVariableTable this 0Lcom/badlogic/gdx/backends/android/AndroidAudio; context Landroid/app/Activity; pause ()V music 0Lcom/badlogic/gdx/backends/android/AndroidMusic; i$ Ljava/util/Iterator;
StackMapTable ? ? ? ? resume i I newAudioDevice ((IZ)Lcom/badlogic/gdx/audio/AudioDevice; samplingRate isMono Z newMusic C(Lcom/badlogic/gdx/files/FileHandle;)Lcom/badlogic/gdx/audio/Music;
descriptor )Landroid/content/res/AssetFileDescriptor; ex Ljava/lang/Exception; file #Lcom/badlogic/gdx/files/FileHandle; aHandle 5Lcom/badlogic/gdx/backends/android/AndroidFileHandle; mediaPlayer Landroid/media/MediaPlayer; ? ? ? ? ? ? newSound C(Lcom/badlogic/gdx/files/FileHandle;)Lcom/badlogic/gdx/audio/Sound; sound 0Lcom/badlogic/gdx/backends/android/AndroidSound; Ljava/io/IOException; ? newAudioRecorder *(IZ)Lcom/badlogic/gdx/audio/AudioRecorder; dispose
musicsCopy Ljava/util/ArrayList; LocalVariableTypeTable GLjava/util/ArrayList; ?
SourceFile AndroidAudio.java L V java/util/ArrayList H I android/media/SoundPool L ? D E audio ? ? ? android/media/AudioManager F G ? ? ? ? ? ? ? ? ? ? .com/badlogic/gdx/backends/android/AndroidMusic ? ? ? g U V ? ? ? ? ? V 4com/badlogic/gdx/backends/android/AndroidAudioDevice L ? 3com/badlogic/gdx/backends/android/AndroidFileHandle android/media/MediaPlayer ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? V ? V L java/lang/Exception *com/badlogic/gdx/utils/GdxRuntimeException java/lang/StringBuilder Error loading audio file: C
Note: Internal audio files must be placed in the assets directory. ? L n
? ? .com/badlogic/gdx/backends/android/AndroidSound
L java/io/IOException 6com/badlogic/gdx/backends/android/AndroidAudioRecorder L ? V V .com/badlogic/gdx/backends/android/AndroidAudio java/lang/Object com/badlogic/gdx/Audio java/util/Iterator java/lang/Throwable !com/badlogic/gdx/files/FileHandle 'android/content/res/AssetFileDescriptor (III)V android/app/Activity getSystemService &(Ljava/lang/String;)Ljava/lang/Object; setVolumeControlStream (I)V java/util/List iterator ()Ljava/util/Iterator; hasNext ()Z next ()Ljava/lang/Object; isPlaying
wasPlaying size ()I get (I)Ljava/lang/Object; play (IZ)V type FileType InnerClasses #()Lcom/badlogic/gdx/Files$FileType; com/badlogic/gdx/Files$FileType Internal !Lcom/badlogic/gdx/Files$FileType; assets "Landroid/content/res/AssetManager; path ()Ljava/lang/String; android/content/res/AssetManager openFd =(Ljava/lang/String;)Landroid/content/res/AssetFileDescriptor; getFileDescriptor ()Ljava/io/FileDescriptor; getStartOffset ()J getLength
setDataSource (Ljava/io/FileDescriptor;JJ)V close prepare N(Lcom/badlogic/gdx/backends/android/AndroidAudio;Landroid/media/MediaPlayer;)V add (Ljava/lang/Object;)Z append -(Ljava/lang/String;)Ljava/lang/StringBuilder; -(Ljava/lang/Object;)Ljava/lang/StringBuilder; toString *(Ljava/lang/String;Ljava/lang/Throwable;)V ()Ljava/io/File; java/io/File getPath (Ljava/lang/String;)V load -(Landroid/content/res/AssetFileDescriptor;I)I 9(Landroid/media/SoundPool;Landroid/media/AudioManager;I)V (Ljava/lang/String;I)I (Ljava/util/Collection;)V release com/badlogic/gdx/Files 1 A B C D E F G H I J K L M N z 2*? *? Y? ? *? Yd? ? *+? ?
? +? ? O / - 0 1 , 2 1 3 P 2 Q R 2 S T U V N ? L*? YL?*? ?
M,? ? (,? ? N-? ? -? -? ? -? ???+ç
:+??? A D D H D O " 6 7 $ 8 + 9 0 : 7 = ? ? K @ P $ W X . Y Z L Q R [ ? \ ]? % ^? ? D _? ` V N ? K*? YL?=*? ? ? -*? ? ? ? ? *? ? ? ? ????+ç N+?-?? B E E H E O C D E : D @ G J H P 7 a b K Q R [ ? \0? D _? c d N H
? Y? ? O M P
Q R
e b
f g h i N j ?+? M? Y? N,? ? ? ?,? ,? ? :-? !? "? #? $? %-? &? Y*-? ':*? Y:?*? ? ( Wç :???:? *Y? +Y? ,-? .+? /0? .? 1? 2?-,? 3? 4? 5-? &? Y*-? ':*? Y:?*? ? ( Wç :???:? *Y? +Y? ,-? .+? /? 1? 2? S b e e j e o p ) ? ? ? ? ? ? ? ? ? ) O ^ S U
W Y $ Z 7 [ <