有大侠了解opensl吗,opensl的资料太少了?
    我用opensl的官方文档里的sample code来播放一个pcm音频,不过在createOutMix就出错了,我跟了源代码,在checkInterface的时候判断requesedInterface的flag,若为真则会返回一个unSupported的flag,在这就出错了,然而sample code理就是将requesedInterface初始化为真,纳闷了,有大侠遇见过吗或者有相关的解决方法吗?    两个问题:
    1. createOutputMix的参数里requsedInterface的和interfaceId是什么关系啊?
    2. 除了官方的文档还有openSlEs的资料吗?

解决方案 »

  1.   

    楼主我也想学习。。我做的根本就没这么深啊。。也不知道怎么学啊。。毕竟android 的3D游戏还是少啊
      

  2.   

    觉得学习opengl还是有前途的,就是资料太少。。
      

  3.   

    5555楼主我看错了。。我以为是opengl 原来是opensl....
      

  4.   


    OpenSL ES - 嵌入式音频加速标准
      OpenSL ES™ 是无授权费、跨平台、针对嵌入式系统精心优化的硬件音频加速API。它为嵌入式移动多媒体设备上的本地应用程序开发者提供标准化, 高性能,低响应时间的音频功能实现方法,并实现软/硬件音频性能的直接跨平台部署,降低执行难度,促进高级音频市场的发展。
      

  5.   

    呵呵.楼上正解.是一套开源的音频标准,不只是你啊,我在搜索引擎里搜opensl的信息,少的可怜啊,出来的结果大多是opengl的东东啊,郁闷
      

  6.   

    我曾经下过一个opensl es的specification。但是我忘了从哪下的了。刚上传到我的资源去了,但是找不到了。很神奇。。爱莫能助。。
      

  7.   

    呵呵,我手上有specification,就是用的上面的Sample code,不过有错。。
      

  8.   

    The OpenSL ES 1.0.1 specification contains example code in the appendices (see section "References" below for the link to this specification). However, the examples in Appendix B: Sample Code and Appendix C: Use Case Sample Code use features not supported by Android. Some examples also contain typographical errors, or use APIs that are likely to change. Proceed with caution in referring to these; though the code may be helpful in understanding the full OpenSL ES standard, it should not be used as is with Android. 摘自NDK中docs/opensles/index.html使用OPENSL ES前,麻烦先看看文档。
      

  9.   

    后来我已经使用上了,只是有点问题,跟到底层是会多次写DSP
      

  10.   


    不知道这位大侠 你通过没有啊....
    我目前也在使用这个例子 播放PCM。但是这个例子 也是在那个位置出错 不知道该如何 解决 恶心死我了。。