Use platform constants for PCM 24/32 bit encoding

These constants are used when setting up the AudioTrack
and should match the definition in the platform.

PiperOrigin-RevId: 592564644
This commit is contained in:
tonihei 2023-12-20 08:13:51 -08:00 committed by Copybara-Service
parent 8b9bf5e7cd
commit 59f01388a6
2 changed files with 3 additions and 3 deletions

View file

@ -245,13 +245,13 @@ public final class C {
@UnstableApi public static final int ENCODING_PCM_16BIT_BIG_ENDIAN = 0x10000000;
/** PCM encoding with 24 bits per sample. */
@UnstableApi public static final int ENCODING_PCM_24BIT = 0x20000000;
@UnstableApi public static final int ENCODING_PCM_24BIT = AudioFormat.ENCODING_PCM_24BIT_PACKED;
/** Like {@link #ENCODING_PCM_24BIT} but with the bytes in big endian order. */
@UnstableApi public static final int ENCODING_PCM_24BIT_BIG_ENDIAN = 0x50000000;
/** PCM encoding with 32 bits per sample. */
@UnstableApi public static final int ENCODING_PCM_32BIT = 0x30000000;
@UnstableApi public static final int ENCODING_PCM_32BIT = AudioFormat.ENCODING_PCM_32BIT;
/** Like {@link #ENCODING_PCM_32BIT} but with the bytes in big endian order. */
@UnstableApi public static final int ENCODING_PCM_32BIT_BIG_ENDIAN = 0x60000000;

View file

@ -2,7 +2,7 @@ AudioSink:
buffer count = 29
discontinuity:
config:
pcmEncoding = 536870912
pcmEncoding = 21
channelCount = 2
sampleRate = 48000
buffer #0: