Re: Audio Programming in android using OPENSL ES

727 views
Skip to first unread message

Glenn Kasten

unread,
May 28, 2013, 10:13:32 AM5/28/13
to andro...@googlegroups.com
Does the native-audio app in NDK examples folder also have the same problem?  If so,
then please post your device name and OS version number; it may be a porting error.
Also try the native-audio example app on another well-known device.

If the native-audio app does not have the problem, then it is likely an
error in your code.   In that case, try comparing your code vs. the example.

On Monday, May 27, 2013 10:39:26 PM UTC-7, Yamusani Vinay wrote:
Actually i'm trying to implement a music player app in android..so i installed android ndk which contains opensl audio libraries..i used it and tried to apply environmental reverb effect..but there is no change in the song..so anyone pls let me know what is the problem..

note:
Added permissions in manifest file.

Michael Moussa

unread,
May 29, 2013, 9:38:51 AM5/29/13
to andro...@googlegroups.com
Environmental Reverb requires support from the device/firmware. If I understand correctly, devices are not required to support this effect or any of the effects for that matter. The problem I notice usually is that the device will say it is supported, but not produce any effect as if it is was not really supported. In practice this is most often the case with the reverb effect on many devices. I am not sure if this is entirely accurate or there is some other issue that is causing reverb to not work, but this is what I have noticed.

Mike

Yamusani Vinay

unread,
May 29, 2013, 1:37:13 PM5/29/13
to andro...@googlegroups.com
in the native-audio app..when i click on "embed soundtrack" i.e it creates a audio player and the song get's played...but when i click on "reverb"..there is no effect added to that song..actually to add effect to song..in native-audio sample app they have not used "effectsend" interface in "CreateAssetAudioPlayer"..we need to add "SLEffectSendItf" to player's object..i added it and tested it but there is no effect...
 


--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk...@googlegroups.com.
To post to this group, send email to andro...@googlegroups.com.
Visit this group at http://groups.google.com/group/android-ndk?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Yamusani Vinay

unread,
May 29, 2013, 1:38:46 PM5/29/13
to andro...@googlegroups.com
in the native-audio app..when i click on "embed soundtrack" i.e it creates a audio player and the song get's played...but when i click on "reverb"..there is no effect added to that song....in native-audio sample app they have not used "effectsend" interface in "CreateAssetAudioPlayer"..actually to add effect to song..we need to add "SLEffectSendItf" to player's object..i added it and tested it but there is no effect...


On Wed, May 29, 2013 at 7:08 PM, Michael Moussa <mouss...@gmail.com> wrote:

--

Glenn Kasten

unread,
Jun 6, 2013, 12:46:34 PM6/6/13
to andro...@googlegroups.com
Yamusani, can you please post your device name and OS version number,
and whether the reverb is also broken with native-audio example app
on other devices / versions you have tried?

Ram Pekam

unread,
Jun 25, 2013, 6:06:43 AM6/25/13
to andro...@googlegroups.com
Hello Yamusani and Glenn,

I am using Android NDK  native-audio but unable to set the reverb effect .
I have tried this sample on  Samsung S2 [ Android 4.x ], Sony Xperia p
[ Android 4.x ], Samsung gt i900 [Android 2.x], HTC desire [ Android 4.x] and Google Nexus  i9250 but the result is same I am stuck at this point my whole project depended on this.
I have also used me Media Player with Audio effect class in android  but same .......

Please help thanks in advance.........
waiting for response....................................


Alexandre Bodi

unread,
Jul 25, 2013, 10:35:11 AM7/25/13
to andro...@googlegroups.com
Have you tried exposing reverb interface on an OutputMix object, instead of a (Player + SendEffectItf)?

mike digioia

unread,
Jul 25, 2013, 2:44:54 PM7/25/13
to andro...@googlegroups.com
what company is it for


Yamusani Vinay

unread,
Jul 28, 2013, 2:37:13 PM7/28/13
to andro...@googlegroups.com
Hi Glen

           This is regarding new issue which i noticed when i was developing an app so the following is the question i would request you to answer:

                      How to add a widget to lock screen? I tried adding widget category as keyguard to appwidget provider..but i am unable to get what i am expecting..as I noticed in apollo music player widget appears on lock screen.So can you please help me implementing the same.

Glenn Kasten

unread,
Jul 29, 2013, 11:59:01 AM7/29/13
to andro...@googlegroups.com
As this is a new topic, please start a new thread in a different group, erhaps android-developers at
or stack overflow.  Thanks

Yamusani Vinay

unread,
Aug 6, 2013, 5:29:20 AM8/6/13
to andro...@googlegroups.com
Hi Glen..

       I tried with sample app in ndk i.e native audio..i discussed with this earlier in my above comments..i.e about reverb effect..i tried it in Galaxy NOTE1 i.e android 4.0..still it is not working..

Yamusani Vinay

unread,
Aug 28, 2013, 2:41:26 AM8/28/13
to andro...@googlegroups.com
Hi Alexandre Bodi,

            I tried exposing reverb on both outputmix and player..but there is no effect.i tried with bassboost i.e using SLBassBoostItf but there is no effect.
I added all the permissions in manifest,I am not facing any errors every where i'm getting SL_RESULT_SUCCESS.

Reply all
Reply to author
Forward
0 new messages