Rabbit-R1/android (non root)/smali/smali_classes2/androidx/media3/extractor/WavUtil.smali
2024-05-21 17:08:36 -04:00

121 lines
2 KiB
Smali

.class public final Landroidx/media3/extractor/WavUtil;
.super Ljava/lang/Object;
.source "WavUtil.java"
# static fields
.field public static final DATA_FOURCC:I = 0x64617461
.field public static final DS64_FOURCC:I = 0x64733634
.field public static final FMT_FOURCC:I = 0x666d7420
.field public static final RF64_FOURCC:I = 0x52463634
.field public static final RIFF_FOURCC:I = 0x52494646
.field public static final TYPE_ALAW:I = 0x6
.field public static final TYPE_FLOAT:I = 0x3
.field public static final TYPE_IMA_ADPCM:I = 0x11
.field public static final TYPE_MLAW:I = 0x7
.field public static final TYPE_PCM:I = 0x1
.field public static final TYPE_WAVE_FORMAT_EXTENSIBLE:I = 0xfffe
.field public static final WAVE_FOURCC:I = 0x57415645
# direct methods
.method private constructor <init>()V
.locals 0
.line 94
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static getPcmEncodingForType(II)I
.locals 2
const/4 v0, 0x1
if-eq p0, v0, :cond_2
const/4 v0, 0x3
const/4 v1, 0x0
if-eq p0, v0, :cond_0
const v0, 0xfffe
if-eq p0, v0, :cond_2
return v1
:cond_0
const/16 p0, 0x20
if-ne p1, p0, :cond_1
const/4 v1, 0x4
:cond_1
return v1
.line 86
:cond_2
invoke-static {p1}, Landroidx/media3/common/util/Util;->getPcmEncoding(I)I
move-result p0
return p0
.end method
.method public static getTypeForPcmEncoding(I)I
.locals 2
const/4 v0, 0x2
if-eq p0, v0, :cond_2
const/4 v0, 0x3
if-eq p0, v0, :cond_2
const/4 v1, 0x4
if-eq p0, v1, :cond_1
const/high16 v0, 0x20000000
if-eq p0, v0, :cond_2
const/high16 v0, 0x30000000
if-ne p0, v0, :cond_0
goto :goto_0
.line 74
:cond_0
new-instance p0, Ljava/lang/IllegalArgumentException;
invoke-direct {p0}, Ljava/lang/IllegalArgumentException;-><init>()V
throw p0
:cond_1
return v0
:cond_2
:goto_0
const/4 p0, 0x1
return p0
.end method