mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Internal
PiperOrigin-RevId: 693418471
This commit is contained in:
parent
d38aba92fe
commit
08470140ac
1 changed files with 3 additions and 1 deletions
|
|
@ -20,6 +20,7 @@ import android.media.AudioFormat;
|
||||||
import android.media.MediaCrypto;
|
import android.media.MediaCrypto;
|
||||||
import android.media.MediaFormat;
|
import android.media.MediaFormat;
|
||||||
import android.view.Surface;
|
import android.view.Surface;
|
||||||
|
import androidx.annotation.Nullable;
|
||||||
import androidx.annotation.RequiresApi;
|
import androidx.annotation.RequiresApi;
|
||||||
import androidx.media3.common.MimeTypes;
|
import androidx.media3.common.MimeTypes;
|
||||||
import androidx.media3.common.util.Assertions;
|
import androidx.media3.common.util.Assertions;
|
||||||
|
|
@ -73,7 +74,8 @@ public final class RandomizedMp3Decoder implements ShadowMediaCodec.CodecConfig.
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onConfigured(MediaFormat format, Surface surface, MediaCrypto crypto, int flags) {
|
public void onConfigured(
|
||||||
|
MediaFormat format, @Nullable Surface surface, @Nullable MediaCrypto crypto, int flags) {
|
||||||
int pcmEncoding =
|
int pcmEncoding =
|
||||||
format.getInteger(
|
format.getInteger(
|
||||||
MediaFormat.KEY_PCM_ENCODING, /* defaultValue= */ AudioFormat.ENCODING_PCM_16BIT);
|
MediaFormat.KEY_PCM_ENCODING, /* defaultValue= */ AudioFormat.ENCODING_PCM_16BIT);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue