Menu

Dream2.2 on Android not able to list input/output device

2019-12-10
2019-12-18
  • zhongfanyang

    zhongfanyang - 2019-12-10

    Hi, I've built the Dream2.2 over Android platform with "USE_OPENSL" macro open. When I test the code on my real Android phone, device enumeration fail to produce any valid result and pop up this error:"SL_RESULT_FEATURE_UNSUPPORTED". I've googled the problem and it seems "SL_IID_AUDIOIODEVICECAPABILITIES" feature is not supported in NDK, what's the workaround?

    I've tested the Dream2.2svn877 hosted on sourceforge and it did produce audio list without problem. How did it manage to pull that off? Any suggestion is highly appreciated, thanks!

     
  • zhongfanyang

    zhongfanyang - 2019-12-18

    OK, I gave up the "USE_OPENSL" option, and use the QT multimedia module instead. After some minor fixing of the source code, finally I can make it run on Android device properly.

    BTW, this version also works on Windows 10 without problem. So, it seems no need for mmsystem any more. A note for other users of the module on different platforms, due to unknown limits of multimedia implementation, if you don't have this fixes, you'll experience constant audio/decoding stutters.

     

Log in to post a comment.