MP3TrackImpl$MP3Header.smali

.class Lcom/googlecode/mp4parser/authoring/tracks/MP3TrackImpl$MP3Header;
.super Ljava/lang/Object;
.source "MP3TrackImpl.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/googlecode/mp4parser/authoring/tracks/MP3TrackImpl;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = "MP3Header"
.end annotation


# instance fields
.field bitRate:I

.field bitRateIndex:I

.field channelCount:I

.field channelMode:I

.field layer:I

.field mpegVersion:I

.field padding:I

.field protectionAbsent:I

.field sampleFrequencyIndex:I

.field sampleRate:I

.field final synthetic this$0:Lcom/googlecode/mp4parser/authoring/tracks/MP3TrackImpl;


# direct methods
.method static constructor <clinit>()V
    .registers 1

    return-void
.end method

.method constructor <init>(Lcom/googlecode/mp4parser/authoring/tracks/MP3TrackImpl;)V
    .registers 2

    .line 149
    iput-object p1, p0, Lcom/googlecode/mp4parser/authoring/tracks/MP3TrackImpl$MP3Header;->this$0:Lcom/googlecode/mp4parser/authoring/tracks/MP3TrackImpl;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method getFrameLength()I
    .registers 3

    .line 166
    iget v0, p0, Lcom/googlecode/mp4parser/authoring/tracks/MP3TrackImpl$MP3Header;->bitRate:I

    mul-int/lit16 v0, v0, 0x90

    iget v1, p0, Lcom/googlecode/mp4parser/authoring/tracks/MP3TrackImpl$MP3Header;->sampleRate:I

    div-int/2addr v0, v1

    iget v1, p0, Lcom/googlecode/mp4parser/authoring/tracks/MP3TrackImpl$MP3Header;->padding:I

    add-int/2addr v0, v1

    return v0
.end method