From 53807e4a284199e105bdaa891017d033e8ad8b0b Mon Sep 17 00:00:00 2001 From: Akihiro Tsukada Date: Mon, 11 Feb 2013 23:32:09 +0900 Subject: [PATCH] add support for MPEG-2 AAC pass-through Some S/PDIF receivers have AAC decoder. Only MPEG2 AAC is added, as I don't have MPEG-4 AAC decoder and cannot test it. --- src/pulse/format.c | 1 + src/pulse/format.h | 3 +++ 2 files changed, 4 insertions(+) diff --git a/src/pulse/format.c b/src/pulse/format.c index b909eea39..05a99a287 100644 --- a/src/pulse/format.c +++ b/src/pulse/format.c @@ -47,6 +47,7 @@ static const char* const _encoding_str_table[]= { [PA_ENCODING_EAC3_IEC61937] = "eac3-iec61937", [PA_ENCODING_MPEG_IEC61937] = "mpeg-iec61937", [PA_ENCODING_DTS_IEC61937] = "dts-iec61937", + [PA_ENCODING_MPEG2_AAC_IEC61937] = "mpeg2-aac-iec61937", [PA_ENCODING_ANY] = "any", }; diff --git a/src/pulse/format.h b/src/pulse/format.h index 469477352..f59408e99 100644 --- a/src/pulse/format.h +++ b/src/pulse/format.h @@ -55,6 +55,9 @@ typedef enum pa_encoding { PA_ENCODING_DTS_IEC61937, /**< DTS data encapsulated in IEC 61937 header/padding */ + PA_ENCODING_MPEG2_AAC_IEC61937, + /**< MPEG-2 AAC data encapsulated in IEC 61937 header/padding. \since 4.0 */ + PA_ENCODING_MAX, /**< Valid encoding types must be less than this value */