mt6735 dolby音效如何不对电话铃声(指定 Stream Type)起作用
时间:10-02
整理:3721RD
点击:
[DESCRIPTION]
dolby音效如何不对电话铃声(指定Stream Type)作用
[SOLUTION]
PlaybackTracks.h文件中修改isEffectBypassStreamType()函数
使下面的逻辑返回True即可.
#ifdef DOLBY_DAP_BYPASS_SOUND_TYPES
bool isEffectBypassStreamType() const {
return ((mStreamType == AUDIO_STREAM_SYSTEM) ||
(mStreamType == AUDIO_STREAM_RING) ||
(mStreamType == AUDIO_STREAM_ALARM) ||
(mStreamType == AUDIO_STREAM_NOTIFICATION) ||
(mStreamType == AUDIO_STREAM_ENFORCED_AUDIBLE) ||
(mStreamType == AUDIO_STREAM_BOOT) ||
(mStreamType == AUDIO_STREAM_DTMF));
// return false;
}
#endif // DOLBY_DAP_BYPASS_SOUND_TYPES
dolby音效如何不对电话铃声(指定Stream Type)作用
[SOLUTION]
PlaybackTracks.h文件中修改isEffectBypassStreamType()函数
使下面的逻辑返回True即可.
#ifdef DOLBY_DAP_BYPASS_SOUND_TYPES
bool isEffectBypassStreamType() const {
return ((mStreamType == AUDIO_STREAM_SYSTEM) ||
(mStreamType == AUDIO_STREAM_RING) ||
(mStreamType == AUDIO_STREAM_ALARM) ||
(mStreamType == AUDIO_STREAM_NOTIFICATION) ||
(mStreamType == AUDIO_STREAM_ENFORCED_AUDIBLE) ||
(mStreamType == AUDIO_STREAM_BOOT) ||
(mStreamType == AUDIO_STREAM_DTMF));
// return false;
}
#endif // DOLBY_DAP_BYPASS_SOUND_TYPES