.class Lcom/viatech/VrPlayer/AudioPlayer$AudioHandler; .super Landroid/os/Handler; .source "AudioPlayer.java" # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Lcom/viatech/VrPlayer/AudioPlayer; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x0 name = "AudioHandler" .end annotation # instance fields .field final synthetic this$0:Lcom/viatech/VrPlayer/AudioPlayer; # direct methods .method public constructor (Lcom/viatech/VrPlayer/AudioPlayer;Landroid/os/Looper;)V .locals 1 .prologue .line 364 iput-object p1, p0, Lcom/viatech/VrPlayer/AudioPlayer$AudioHandler;->this$0:Lcom/viatech/VrPlayer/AudioPlayer; .line 365 invoke-direct {p0, p2}, Landroid/os/Handler;->(Landroid/os/Looper;)V .line 366 const/16 v0, -0x10 invoke-static {v0}, Landroid/os/Process;->setThreadPriority(I)V .line 367 return-void .end method # virtual methods .method public handleMessage(Landroid/os/Message;)V .locals 6 .prologue const/4 v4, 0x1 .line 371 iget v0, p1, Landroid/os/Message;->what:I packed-switch v0, :pswitch_data_0 .line 412 :goto_0 return-void .line 373 :pswitch_0 const/16 v0, 0x2710 invoke-virtual {p0, v0}, Lcom/viatech/VrPlayer/AudioPlayer$AudioHandler;->sendEmptyMessage(I)Z .line 376 iget-object v0, p0, Lcom/viatech/VrPlayer/AudioPlayer$AudioHandler;->this$0:Lcom/viatech/VrPlayer/AudioPlayer; invoke-static {v0}, Lcom/viatech/VrPlayer/AudioPlayer;->access$000(Lcom/viatech/VrPlayer/AudioPlayer;)Ljava/lang/Object; move-result-object v1 monitor-enter v1 .line 377 :goto_1 :try_start_0 iget-object v0, p0, Lcom/viatech/VrPlayer/AudioPlayer$AudioHandler;->this$0:Lcom/viatech/VrPlayer/AudioPlayer; invoke-static {v0}, Lcom/viatech/VrPlayer/AudioPlayer;->access$100(Lcom/viatech/VrPlayer/AudioPlayer;)I :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 move-result v0 if-ne v0, v4, :cond_0 .line 379 :try_start_1 iget-object v0, p0, Lcom/viatech/VrPlayer/AudioPlayer$AudioHandler;->this$0:Lcom/viatech/VrPlayer/AudioPlayer; invoke-static {v0}, Lcom/viatech/VrPlayer/AudioPlayer;->access$000(Lcom/viatech/VrPlayer/AudioPlayer;)Ljava/lang/Object; move-result-object v0 const-wide/16 v2, 0xa invoke-virtual {v0, v2, v3}, Ljava/lang/Object;->wait(J)V :try_end_1 .catch Ljava/lang/InterruptedException; {:try_start_1 .. :try_end_1} :catch_0 .catchall {:try_start_1 .. :try_end_1} :catchall_0 goto :goto_1 .line 380 :catch_0 move-exception v0 .line 381 :try_start_2 invoke-virtual {v0}, Ljava/lang/InterruptedException;->printStackTrace()V goto :goto_1 .line 384 :catchall_0 move-exception v0 monitor-exit v1 :try_end_2 .catchall {:try_start_2 .. :try_end_2} :catchall_0 throw v0 :cond_0 :try_start_3 monitor-exit v1 :try_end_3 .catchall {:try_start_3 .. :try_end_3} :catchall_0 .line 386 iget-object v0, p0, Lcom/viatech/VrPlayer/AudioPlayer$AudioHandler;->this$0:Lcom/viatech/VrPlayer/AudioPlayer; invoke-static {v0}, Lcom/viatech/VrPlayer/AudioPlayer;->access$000(Lcom/viatech/VrPlayer/AudioPlayer;)Ljava/lang/Object; move-result-object v1 monitor-enter v1 .line 387 :try_start_4 iget-object v0, p0, Lcom/viatech/VrPlayer/AudioPlayer$AudioHandler;->this$0:Lcom/viatech/VrPlayer/AudioPlayer; invoke-static {v0}, Lcom/viatech/VrPlayer/AudioPlayer;->access$200(Lcom/viatech/VrPlayer/AudioPlayer;)Ljava/util/List; move-result-object v0 invoke-interface {v0}, Ljava/util/List;->isEmpty()Z :try_end_4 .catchall {:try_start_4 .. :try_end_4} :catchall_1 move-result v0 if-eqz v0, :cond_1 .line 389 :try_start_5 iget-object v0, p0, Lcom/viatech/VrPlayer/AudioPlayer$AudioHandler;->this$0:Lcom/viatech/VrPlayer/AudioPlayer; const/4 v2, 0x1 invoke-static {v0, v2}, Lcom/viatech/VrPlayer/AudioPlayer;->access$302(Lcom/viatech/VrPlayer/AudioPlayer;I)I .line 390 iget-object v0, p0, Lcom/viatech/VrPlayer/AudioPlayer$AudioHandler;->this$0:Lcom/viatech/VrPlayer/AudioPlayer; invoke-static {v0}, Lcom/viatech/VrPlayer/AudioPlayer;->access$000(Lcom/viatech/VrPlayer/AudioPlayer;)Ljava/lang/Object; move-result-object v0 invoke-virtual {v0}, Ljava/lang/Object;->wait()V :try_end_5 .catch Ljava/lang/InterruptedException; {:try_start_5 .. :try_end_5} :catch_1 .catchall {:try_start_5 .. :try_end_5} :catchall_1 .line 394 :goto_2 :try_start_6 monitor-exit v1 goto :goto_0 .line 402 :catchall_1 move-exception v0 monitor-exit v1 :try_end_6 .catchall {:try_start_6 .. :try_end_6} :catchall_1 throw v0 .line 391 :catch_1 move-exception v0 .line 392 :try_start_7 invoke-virtual {v0}, Ljava/lang/InterruptedException;->printStackTrace()V goto :goto_2 .line 396 :cond_1 iget-object v0, p0, Lcom/viatech/VrPlayer/AudioPlayer$AudioHandler;->this$0:Lcom/viatech/VrPlayer/AudioPlayer; invoke-static {v0}, Lcom/viatech/VrPlayer/AudioPlayer;->access$200(Lcom/viatech/VrPlayer/AudioPlayer;)Ljava/util/List; move-result-object v0 const/4 v2, 0x0 invoke-interface {v0, v2}, Ljava/util/List;->get(I)Ljava/lang/Object; move-result-object v0 check-cast v0, Lcom/viatech/VrPlayer/MediaPacket; .line 397 iget-object v2, p0, Lcom/viatech/VrPlayer/AudioPlayer$AudioHandler;->this$0:Lcom/viatech/VrPlayer/AudioPlayer; iget v3, v0, Lcom/viatech/VrPlayer/MediaPacket;->mPTS:I invoke-static {v2, v3}, Lcom/viatech/VrPlayer/AudioPlayer;->access$402(Lcom/viatech/VrPlayer/AudioPlayer;I)I .line 398 iget-object v2, p0, Lcom/viatech/VrPlayer/AudioPlayer$AudioHandler;->this$0:Lcom/viatech/VrPlayer/AudioPlayer; invoke-static {}, Ljava/lang/System;->currentTimeMillis()J move-result-wide v4 invoke-static {v2, v4, v5}, Lcom/viatech/VrPlayer/AudioPlayer;->access$502(Lcom/viatech/VrPlayer/AudioPlayer;J)J .line 400 iget-object v2, p0, Lcom/viatech/VrPlayer/AudioPlayer$AudioHandler;->this$0:Lcom/viatech/VrPlayer/AudioPlayer; invoke-static {v2}, Lcom/viatech/VrPlayer/AudioPlayer;->access$200(Lcom/viatech/VrPlayer/AudioPlayer;)Ljava/util/List; move-result-object v2 const/4 v3, 0x0 invoke-interface {v2, v3}, Ljava/util/List;->remove(I)Ljava/lang/Object; .line 401 iget-object v2, p0, Lcom/viatech/VrPlayer/AudioPlayer$AudioHandler;->this$0:Lcom/viatech/VrPlayer/AudioPlayer; invoke-static {v2}, Lcom/viatech/VrPlayer/AudioPlayer;->access$000(Lcom/viatech/VrPlayer/AudioPlayer;)Ljava/lang/Object; move-result-object v2 invoke-virtual {v2}, Ljava/lang/Object;->notify()V .line 402 monitor-exit v1 :try_end_7 .catchall {:try_start_7 .. :try_end_7} :catchall_1 .line 405 iget-object v1, p0, Lcom/viatech/VrPlayer/AudioPlayer$AudioHandler;->this$0:Lcom/viatech/VrPlayer/AudioPlayer; iget-object v0, v0, Lcom/viatech/VrPlayer/MediaPacket;->mData:[B invoke-virtual {v1, v0}, Lcom/viatech/VrPlayer/AudioPlayer;->decodeAndOutput([B)V goto/16 :goto_0 .line 371 :pswitch_data_0 .packed-switch 0x2710 :pswitch_0 .end packed-switch .end method