Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 047e7fc8 authored by Dean Wheatley's avatar Dean Wheatley Committed by Jean-Michel Trivi
Browse files

Clarify AC-4 mimetype is sync frame transport format

This enforces consistency with the AudioFormat ENCODING_AC4_L4 which
specifies AC-4 sync frames. AudioTrack AC-4 playback requires sync
frames, so harmonize both audio and media framework to expect and
require AC-4 to be in sync frame transport format.

MediaExtractors, including those for MP4 that packetize AC-4 raw
frames, are required to produce AC-4 sync frames. Similarly,
MP4 MediaMuxers must extract AC-4 raw frames from AC-4 sync frames
before packetizing.

Flag: EXEMPT doc only
Test: N/A doc only
Bug: 422475939
Change-Id: Ie9f9427aec788a8ea1979cfa13d23b277a6efbdb
parent a1f819a3
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -192,6 +192,7 @@ public final class MediaFormat {
    public static final String MIMETYPE_AUDIO_AC3 = "audio/ac3";
    public static final String MIMETYPE_AUDIO_EAC3 = "audio/eac3";
    public static final String MIMETYPE_AUDIO_EAC3_JOC = "audio/eac3-joc";
    /** MIME type for AC-4 sync frame transport format audio stream. */
    public static final String MIMETYPE_AUDIO_AC4 = "audio/ac4";
    public static final String MIMETYPE_AUDIO_SCRAMBLED = "audio/scrambled";
    /** MIME type for MPEG-H Audio single stream */