mirror of
https://github.com/samsonjs/media.git
synced 2026-03-31 10:25:48 +00:00
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:
parent
8b9bf5e7cd
commit
59f01388a6
2 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ AudioSink:
|
|||
buffer count = 29
|
||||
discontinuity:
|
||||
config:
|
||||
pcmEncoding = 536870912
|
||||
pcmEncoding = 21
|
||||
channelCount = 2
|
||||
sampleRate = 48000
|
||||
buffer #0:
|
||||
|
|
|
|||
Loading…
Reference in a new issue