RecorderObject in OpenSL does not implement the interface to set the volume or configure on Android -


i tried sldevicevolumeitf interface of recorderobject on android got error: sl_result_feature_unsupported.

i read android implementation of opensl es not support volume setting audiorecorder. true?

if yes there workaround? have voip application not worl on galaxy nexus because of high mic gain.

i tried sl_iid_androidconfiguration set streamtype new voice_communincation audio-source again error 12 (not supported).

   // create audio recorder const slinterfaceid id[2] = { sl_iid_androidsimplebufferqueue, sl_iid_androidconfiguration }; const slboolean    req[2] = { sl_boolean_true, sl_boolean_true };  result = (*engine)->createaudiorecorder(engine, &recorderobject, &audiosrc,  &audiosnk, 2, id, req); if (sl_result_success != result) {     return false; }  slandroidconfigurationitf recorderconfig;    result = (*recorderobject)->getinterface(recorderobject, sl_iid_androidconfiguration, &recorderconfig); if(result != sl_result_success) {     error("failed sl_iid_androidconfiguration interface. e == %d", result); } 

the recorderobject created can't sl_iid_androidconfiguration interface. tried on galaxy nexus (ics), htc sense (ics) , motorola blur (gingerbread). i'm using ndk version 6.

now can interface. had use ndk 8 , target-14. when tried use 10 target, had error compiling native code (dirent.h not found). had use target-platform-14.


Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -