×
Namespaces

Variants
Actions

为音频播放程序增加均衡器

From Nokia Developer Wiki
Jump to: navigation, search
Article Metadata

代码示例
文章
huwell 在 17 Oct 2008 创建
最后由 hamishwillee 在 15 Dec 2011 编辑

CS001136


  • 开发伙伴平台:

S60 3rd Edition


  • 详细描述

S60有几个音频增加功能的API,可以用来修改音频播放体验。其中一个就是CAudioEqualizerUtility这个API。这个代码片段需要自签名即可执行。


Contents

前言

音频播放器必须在构造这个API实例前完全生成,可以使用如下代码:

iMdaAudioPlayerUtility = 
CMdaAudioPlayerUtility::NewFilePlayerL(aFileName,
*this,
EMdaPriorityNormal,
EMdaPriorityPreferenceTimeAndQuality);

MMP

需要下列能力和链接库

CAPABILITY NONE 
 
LIBRARY AudioEqualizerUtility.lib
 
Header audioequalizerutility.h


源文件

首先需要构造一个实例

iAudioEqualizerUtility =
CAudioEqualizerUtility::NewL(*iMdaAudioPlayerUtility);

使用下列代码询问均衡器预置:

TArray<TEfAudioEqualizerUtilityPreset> allPresets = 
iAudioEqualizerUtility->Presets();


使用下列代码应用一个均衡器预置:

iAudioEqualizerUtility->ApplyPresetL(preSetIndex);
// where preSetIndex is 0 to (iAudioEqualizerUtility->Presets().Count() – 1)


测试程序

File:PlayerExtrasExample.zip

This page was last modified on 15 December 2011, at 09:19.
126 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×