|
发表于 2022-4-26 13:45:17
2951 浏览 0 回复
[FAQ27320] GMS ago项目不支持wma,adpcm,ape,alac等audio codec.MT6761 MT6739
带GMS包的ago项目出于项目配置受限的因素,默认不支持以下audio codec:wma,adpcm,ape,alac
下面以mt6761 ago项目为例来作说明:MTK_GMO_RAM_OPTIMIZE被置为yes,所以对应的media codec xml文件名是带ago的
/android/device/mediatek/mt6761/device.mk
- 1040 ifneq ($(MTK_BASIC_PACKAGE), yes)
- 1041 ifeq ($(strip $(MTK_AUDIO_CODEC_SUPPORT_TABLET)), yes)
- 1042 ifeq ($(strip $(MTK_WMA_PLAYBACK_SUPPORT)), yes)
- 1043 PRODUCT_COPY_FILES += device/mediatek/mt6761/media_codecs_mediatek_audio_tablet.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_mediatek_audio.xml:mtk
- 1044 else
- 1045 PRODUCT_COPY_FILES += device/mediatek/mt6761/media_codecs_mediatek_audio_tablet_no_wma.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_mediatek_audio.xml:mtk
- 1046 endif
- 1047 else ifeq ($(strip $(MTK_GMO_RAM_OPTIMIZE)), yes)
- 1048 PRODUCT_COPY_FILES += device/mediatek/mt6761/media_codecs_mediatek_audio_phone_ago.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_mediatek_audio.xml:mtk
- 1049 else
- 1050 PRODUCT_COPY_FILES += device/mediatek/mt6761/media_codecs_mediatek_audio_phone.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_mediatek_audio.xml:mtk
- 1051 endif
- 1052 else
- 1053 PRODUCT_COPY_FILES += device/mediatek/mt6761/media_codecs_mediatek_audio_basic.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_mediatek_audio.xml:mtk
- 1054 endif
复制代码 ago对应的配置内容如下:
- /device/mediatek/mt6761/media_codecs_mediatek_audio_phone_ago.xml
- 79 <Included>
- 80 <Decoders>
- 81 <MediaCodec name="OMX.MTK.AUDIO.DECODER.MP3" type="audio/mpeg" rank="6">
- 82 <Quirk name="decoder-lies-about-number-of-channels" />
- 83 <Quirk name="supports-multiple-frames-per-input-buffer" />
- 84 </MediaCodec>
- 85 <MediaCodec name="OMX.MTK.AUDIO.DECODER.GSM" type="audio/gsm" />
- 86 </Decoders>
- 87 </Included>
复制代码 而非ago项目,对应的xml文件为如下所示:
/device/mediatek/mt6761/media_codecs_mediatek_audio_phone.xml
- 79 <Included>
- 80 <Decoders>
- 81 <MediaCodec name="OMX.MTK.AUDIO.DECODER.MP3" type="audio/mpeg" rank="6">
- 82 <Quirk name="decoder-lies-about-number-of-channels" />
- 83 <Quirk name="supports-multiple-frames-per-input-buffer" />
- 84 </MediaCodec>
- 85 <MediaCodec name="OMX.MTK.AUDIO.DECODER.GSM" type="audio/gsm" />
- 86 <MediaCodec name="OMX.MTK.AUDIO.DECODER.WMA" type="audio/x-ms-wma" />
- 87 <MediaCodec name="OMX.MTK.AUDIO.DECODER.ADPCM.MS" type="audio/x-adpcm-ms" />
- 88 <MediaCodec name="OMX.MTK.AUDIO.DECODER.ADPCM.DVI" type="audio/x-adpcm-dvi-ima" />
- 89 <MediaCodec name="OMX.MTK.AUDIO.DECODER.APE" type="audio/ape" >
- 90 <Quirk name="decoder-lies-about-number-of-channels" />
- 91 <Quirk name="supports-multiple-frames-per-input-buffer" />
- 92 </MediaCodec>
- 93 <MediaCodec name="OMX.MTK.AUDIO.DECODER.ALAC" type="audio/alac" />
- 94 </Decoders>
- 95 </Included>
复制代码
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
|
手机微信同号:13682654092
|
|
|
|
|
登录或注册
|