Add support for AAC audio codec

Add option --audio-codec=aac.
This commit is contained in:
Romain Vimont 2023-02-18 19:30:36 +01:00
commit 7f50ed2458
8 changed files with 16 additions and 5 deletions

View file

@ -3,7 +3,8 @@ package com.genymobile.scrcpy;
import android.media.MediaFormat;
public enum AudioCodec implements Codec {
OPUS(0x6f_70_75_73, "opus", MediaFormat.MIMETYPE_AUDIO_OPUS);
OPUS(0x6f_70_75_73, "opus", MediaFormat.MIMETYPE_AUDIO_OPUS),
AAC(0x00_61_61_63, "aac", MediaFormat.MIMETYPE_AUDIO_AAC);
private final int id; // 4-byte ASCII representation of the name
private final String name;