Namespaces

Variants
Actions

Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

S60不再支持CMdaAudioConvertUtility

From Wiki
Jump to: navigation, search
Article Metadata

文章
huwell 在 22 Dec 2008 创建
最后由 hamishwillee 在 15 Dec 2011 编辑

KIS000358

  • 开发伙伴平台:

S60 2nd Edition (all Feature Packs)

S60 3rd Edition (all Feature Packs)

S60 5th Edition


  • 详细描述

CMdaAudioConvertUtility是Symbian中Media Client Audio API的一部分。但在S60第一版(v1.2)后不再支持。在新平台上运行时,所有的CMdaAudioConvertUtility::OpenL()都会返回KErrNotSupported错误代码。


  • 解决方案

S60不再支持Audio convert utility,流媒体程序再传递流数据时不需要再将音频转化为PCM格式。相反可以直接从流数据读写压缩后的音频格式,当初始化流对象时需要提供一个被支持的数据类型(fourCC代码)


例如,当使用CMdaAudioInputStream读取AMR-NB格式的音频数据时:

void MyStreamClass::MaiscOpenComplete(TInt aError)
{
iInputStream->SetDataTypeL(KMMFFourCCCodeAMR);
...
}

在不同的音频编码类型之间进行转换可以通过CMMFCodec这个API解决。只要手机支持的编码/解码格式,都可以顺利转换。要查看具体手机的多媒体支持能力,可以参考这里

This page was last modified on 15 December 2011, at 06:47.
220 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.

×