×
Namespaces

Variants
Actions

S60上不再支持CMdaAudioConvertUtility

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

兼容于
平台: S60 2nd Edition, S60 2nd Edition FP1, S60 2nd Edition FP2, S60 2nd Edition FP3 S60 3rd Edition, S60 3rd Edition FP1
S60 3rd Edition FP1
S60 3rd Edition (initial release)
S60 2nd Edition FP3
S60 2nd Edition FP2
S60 2nd Edition FP1
S60 2nd Edition (initial release)

文章
huwell 在 28 Jun 2007 创建
最后由 hamishwillee 在 30 May 2013 编辑
  • 说明:

S60上不再支持CMdaAudioConvertUtility


  • 详细描述:

CMdaAudioConvertUility做为Symbian' Media Client Audio API的一部分,从S60第二版SDK, FP1后就不再被支持。

当在新平台使用时,所有CMdaAudioConvertUtility::OpenL()所返回的变量将为KErrNotSupported错误代码。


  • 解决方案:

Audio convert utility在S60上不再被支持,流媒体程序不再需要将声音先转成PCM中间格式,取而代之的是我们可以直接将压缩的声音数据向流中传递或从中接收,只需在初始化流对象时提供一个被支持的数据类型(fourCC代码)。


如,使用CMdaAudioInputStream从AMR-NB格式中直接读取声音数据:

void MyStreamClass::MaiscOpenComplete(TInt aError) 
{
iInputStream->SetDataTypeL(KMMFFourCCCodeAMR);
...
}
This page was last modified on 30 May 2013, at 07:35.
75 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.

×