opensl es Unsupported feature

Showing 1-22 of 22 messages
opensl es Unsupported feature beast 3/16/12 4:52 AM
I'm trying to get the AudioCapabilities of my device but I'm getting
this result... Anyone experienced this issue before?
Re: opensl es Unsupported feature Glenn Kasten 3/16/12 7:11 AM
I assume you mean SLAudioIODeviceCapabilitiesItf, SLAudioDecoderCapabilitiesItf, or SLAudioEncoderCapabilitiesItf. Those are not supported.  See $NDK/docs/opensles/index.html section "

Supported features from OpenSL ES 1.0.1", subsection "Objects and interfaces". Those 3 interfaces are not listed and so are not supported.

Re: opensl es Unsupported feature beast 3/16/12 7:43 AM
i don't understand the concept of "supported features".

I'm trying to do a simple thing such as:

        SLresult res;
        SLObjectItf sl;

        /* Create OpenSL ES engine in thread-safe mode */
        SLEngineOption EngineOption[] = { (SLuint32)
SL_ENGINEOPTION_THREADSAFE, (SLuint32) SL_BOOLEAN_TRUE };
        res = slCreateEngine( &sl, 1, EngineOption, 0, NULL, NULL);
        CheckErr(res);

        /* Realizing the SL Engine in synchronous mode. */
        res = (*sl)->Realize(sl, SL_BOOLEAN_FALSE);
        CheckErr(res);

        SLAudioIODeviceCapabilitiesItf audio_capabilities;

        /* Get the Audio IO DEVICE CAPABILITIES interface, which is also
        implicit */
        res = (*sl)->GetInterface(sl, SL_IID_AUDIOIODEVICECAPABILITIES, (void
*)&audio_capabilities);
        CheckErr(res);

If this isn't possible, what is possible then? :\
Re: opensl es Unsupported feature beast 3/20/12 2:57 AM
Anyone?
Re: opensl es Unsupported feature James Woodbridge 3/20/12 2:58 AM
This is a bit vague, is this an error you are getting?

On Tue, Mar 20, 2012 at 9:57 AM, beast <filipe.oli...@gmail.com> wrote:
Anyone?

--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/android-ndk/-/TK7UL9-zcbgJ.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.

Re: opensl es Unsupported feature beast 3/20/12 3:49 AM
lol this is the error:


        SLresult res;
        SLObjectItf sl;

        /* Create OpenSL ES engine in thread-safe mode */
        SLEngineOption EngineOption[] = { (SLuint32)
SL_ENGINEOPTION_THREADSAFE, (SLuint32) SL_BOOLEAN_TRUE };
        res = slCreateEngine( &sl, 1, EngineOption, 0, NULL, NULL);
        CheckErr(res);

        /* Realizing the SL Engine in synchronous mode. */
        res = (*sl)->Realize(sl, SL_BOOLEAN_FALSE);
        CheckErr(res);

        
SLAudioIODeviceCapabilitiesItf audio_capabilities;

        /* Get the Audio IO DEVICE CAPABILITIES interface, which is also
        implicit */
        res = (*sl)->GetInterface(sl, SL_IID_AUDIOIODEVICECAPABILITIES, (void
*)&audio_capabilities);
        CheckErr(res);

res returns UNSUPPORTED_FEATURE
Re: opensl es Unsupported feature James Woodbridge 3/20/12 4:06 AM
Im literally starting OpenSL today but if my openGLES knowledge is anything to go by then it sounds like SL_IID_AUDIOIODEVICECAPABILITI
ES isnt supported by the hardware on your device. Usually you have to query the hardware implementation to find out its hardware capabilities.

I will need to clarify this when i read bit further so bare with me.  Or if someone else could back me up or shoot me down that would be useful too :)


To view this discussion on the web visit https://groups.google.com/d/msg/android-ndk/-/OUxGKao6SNEJ.

To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.

Re: opensl es Unsupported feature beast 3/22/12 7:53 AM
And do you know how can I query the hardware capabilities?
Re: opensl es Unsupported feature James Woodbridge 3/22/12 8:23 AM
Has to be something like QueryAudioOutputCapabilities see the Khronos spec card for the API breakdown and work out which one tells you what support there is :www.khronos.org/files/opensl-es-1-1-quick-reference.pdf

To view this discussion on the web visit https://groups.google.com/d/msg/android-ndk/-/x13-ESlyBj8J.

To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.

Re: opensl es Unsupported feature beast 3/23/12 3:25 AM
You are suggesting something like:

    res = (*AudioIODeviceCapabilitiesItf)->QueryAudioOutputCapabilities(AudioIODeviceCapabilitiesItf, OutputDeviceIDs[i], &AudioOutputDescriptor);

However, to do such query we previously need the AudioIODeviceCapabilitiesItf:

    res = (*sl)->GetInterface(sl, SL_IID_AUDIOIODEVICECAPABILITIES, (void *)&AudioIODeviceCapabilitiesItf);

This is exactly where I'm having problems. "res" return UNSUPPORTED_FEATURE :\
Re: opensl es Unsupported feature James Woodbridge 3/23/12 4:22 AM
Hmm i see your issue, can you get a spec of the device your testing on ? It sounds like the device hasn't got OpenSL ES hardware in it. Simpley, whats the device?

To view this discussion on the web visit https://groups.google.com/d/msg/android-ndk/-/dhjT68ip_oYJ.

To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.

Re: opensl es Unsupported feature beast 3/23/12 4:28 AM
Sony Ericsson XPERIA Arc
Re: opensl es Unsupported feature James Woodbridge 3/23/12 4:37 AM
I cant find the device spec for this, but id strongly believe that OpenSL ES isnt supported on te device. You will need to look into this further.



To view this discussion on the web visit https://groups.google.com/d/msg/android-ndk/-/0XFxCwK8gsgJ.

To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.

Re: opensl es Unsupported feature Glenn Kasten 3/24/12 6:56 AM
Please re-read my 3/16 reply, especially this: "Those 3 interfaces are
not listed and so are not supported."

On Mar 23, 4:37 am, James Woodbridge <james.woodbri...@gmail.com>
wrote:
> I cant find the device spec for this, but id strongly believe that OpenSL
> ES isnt supported on te device. You will need to look into this further.
>
> On Fri, Mar 23, 2012 at 11:28 AM, beast <filipe.oliveira.so...@gmail.com>wrote:
>
>
>
>
>
>
>
> > Sony Ericsson XPERIA Arc
>
> > On Friday, March 23, 2012 11:22:33 AM UTC, James Woodbridge wrote:
>
> >> Hmm i see your issue, can you get a spec of the device your testing on ?
> >> It sounds like the device hasn't got OpenSL ES hardware in it. Simpley,
> >> whats the device?
>
> >> On Fri, Mar 23, 2012 at 10:25 AM, beast <filipe.oliveira.sousa@gmail.​com<filipe.oliveira.so...@gmail.com>
> >> > wrote:
>
> >>> You are suggesting something like:
>
> >>>     res =
> >>> (*​AudioIODeviceCapabilitiesItf)-​>QueryAudioOutputCapabilities(​AudioIODev iceCapabilitiesItf,
> >>> OutputDeviceIDs[i], &AudioOutputDescriptor);
>
> >>> However, to do such query we previously need the
> >>> AudioIODeviceCapabilitiesItf:
>
> >>>     res = (*sl)->GetInterface(sl, SL_IID_​AUDIOIODEVICECAPABILITIES,
> >>> (void *)&​AudioIODeviceCapabilitiesItf);
>
> >>> This is exactly where I'm having problems. "res" return
> >>> UNSUPPORTED_FEATURE :\
>
> >>> On Thursday, March 22, 2012 3:23:34 PM UTC, James Woodbridge wrote:
>
> >>>> Has to be something like QueryAudioOutputCapabilities see the Khronos
> >>>> spec card for the API breakdown and work out which one tells you what
> >>>> support there is :www.khronos.org/files/*opensl*
> >>>> -​​es-1-1-quick-reference.pdf
>
> >>>> On Thu, Mar 22, 2012 at 2:53 PM, beast <
> >>>> filipe.oliveira.sousa@gmail.​​com <filipe.oliveira.so...@gmail.com>>wrote:
>
> >>>>> And do you know how can I query the hardware capabilities?
>
> >>>>> On Tuesday, March 20, 2012 11:06:15 AM UTC, James Woodbridge wrote:
>
> >>>>>> Im literally starting OpenSL today but if my openGLES knowledge is
> >>>>>> anything to go by then it sounds like SL_IID_AUDIOIODEVICECAPABILITI
> >>>>>> ES isnt supported by the hardware on your device. Usually you have to
> >>>>>> query the hardware implementation to find out its hardware capabilities.
>
> >>>>>> I will need to clarify this when i read bit further so bare with me.
> >>>>>> Or if someone else could back me up or shoot me down that would be useful
> >>>>>> too :)
>
> >>>>>> On Tue, Mar 20, 2012 at 10:49 AM, beast <filipe.oliveira.sousa@gmail.
> >>>>>> **c​​om <filipe.oliveira.so...@gmail.com>> wrote:
>
> >>>>>>> lol this is the error:
>
> >>>>>>>         SLresult res;
> >>>>>>>         SLObjectItf sl;
>
> >>>>>>>         /* Create OpenSL ES engine in thread-safe mode */
> >>>>>>>         SLEngineOption EngineOption[] = { (SLuint32)
> >>>>>>> SL_ENGINEOPTION_THREADSAFE, (SLuint32) SL_BOOLEAN_TRUE };
> >>>>>>>         res = slCreateEngine( &sl, 1, EngineOption, 0, NULL, NULL);
> >>>>>>>         CheckErr(res);
>
> >>>>>>>         /* Realizing the SL Engine in synchronous mode. */
> >>>>>>>         res = (*sl)->Realize(sl, SL_BOOLEAN_FALSE);
> >>>>>>>         CheckErr(res);
>
> >>>>>>> **SLAudioIODeviceCapabilitiesItf audio_capabilities;
>
> >>>>>>>         /* Get the Audio IO DEVICE CAPABILITIES interface, which is
> >>>>>>> also
> >>>>>>>         implicit */
> >>>>>>>         res = (*sl)->GetInterface(sl, SL_IID_**
> >>>>>>> AUDIOIODEVICECAPABILITI**​​ES, (void
> >>>>>>> *)&audio_capabilities);
> >>>>>>>         CheckErr(res);
>
> >>>>>>> res returns UNSUPPORTED_FEATURE
>
> >>>>>>> On Tuesday, March 20, 2012 9:58:56 AM UTC, James Woodbridge wrote:
>
> >>>>>>>> This is a bit vague, is this an error you are getting?
>
> >>>>>>>> On Tue, Mar 20, 2012 at 9:57 AM, beast <
> >>>>>>>> filipe.oliveira.sousa@gmail.**c**​​om<filipe.oliveira.so...@gmail.com>
> >>>>>>>> > wrote:
>
> >>>>>>>>> Anyone?
>
> >>>>>>>>> --
> >>>>>>>>> You received this message because you are subscribed to the Google
> >>>>>>>>> Groups "android-ndk" group.
> >>>>>>>>> To view this discussion on the web visit
> >>>>>>>>>https://groups.google.com/d/**ms**​​g/android-ndk/-/TK7UL9-zcbgJ<https://groups.google.com/d/msg/android-ndk/-/TK7UL9-zcbgJ>
> >>>>>>>>> **.
> >>>>>>>>> To post to this group, send email to andro...@googlegroups.com.
> >>>>>>>>> To unsubscribe from this group, send email to
> >>>>>>>>> android-ndk+unsubscribe@**google**​​groups.com<android-ndk%2Bunsubscribe@go oglegroups.com>
> >>>>>>>>> .
> >>>>>>>>> For more options, visit this group athttp://groups.google.com/**
> >>>>>>>>> group**​​/android-ndk?hl=en<http://groups.google.com/group/android-ndk?hl=en>
> >>>>>>>>> .
>
> >>>>>>>>  --
> >>>>>>> You received this message because you are subscribed to the Google
> >>>>>>> Groups "android-ndk" group.
> >>>>>>> To view this discussion on the web visit
> >>>>>>>https://groups.google.com/d/**ms​​g/android-ndk/-/OUxGKao6SNEJ<https://groups.google.com/d/msg/android-ndk/-/OUxGKao6SNEJ>
> >>>>>>> **.
> >>>>>>> To post to this group, send email to andro...@googlegroups.com.
> >>>>>>> To unsubscribe from this group, send email to
> >>>>>>> android-ndk+unsubscribe@**google​​groups.com<android-ndk%2Bunsubscribe@goog legroups.com>
> >>>>>>> .
> >>>>>>> For more options, visit this group athttp://groups.google.com/**
> >>>>>>> group​​/android-ndk?hl=en<http://groups.google.com/group/android-ndk?hl=en>
> >>>>>>> .
>
> >>>>>>  --
> >>>>> You received this message because you are subscribed to the Google
> >>>>> Groups "android-ndk" group.
> >>>>> To view this discussion on the web visit
> >>>>>https://groups.google.com/d/​​msg/android-ndk/-/x13-ESlyBj8J<https://groups.google.com/d/msg/android-ndk/-/x13-ESlyBj8J>
> >>>>> ​​.
> >>>>> To post to this group, send email to andro...@googlegroups.com.
> >>>>> To unsubscribe from this group, send email to
> >>>>> android-ndk+unsubscribe@​​googlegroups.com<android-ndk%2Bunsubscribe@google groups.com>
> >>>>> .
> >>>>> For more options, visit this group at
> >>>>>http://groups.google.com/​​group/android-ndk?hl=en<http://groups.google.com/group/android-ndk?hl=en>
> >>>>> .
>
> >>>>  --
> >>> You received this message because you are subscribed to the Google
> >>> Groups "android-ndk" group.
> >>> To view this discussion on the web visit
> >>>https://groups.google.com/d/​msg/android-ndk/-/dhjT68ip_oYJ<https://groups.google.com/d/msg/android-ndk/-/dhjT68ip_oYJ>
> >>> ​.
> >>> To post to this group, send email to andro...@googlegroups.com.
> >>> To unsubscribe from this group, send email to
> >>> android-ndk+unsubscribe@​googlegroups.com<android-ndk%2Bunsubscribe@googleg roups.com>
> >>> .
> >>> For more options, visit this group at
> >>>http://groups.google.com/​group/android-ndk?hl=en<http://groups.google.com/group/android-ndk?hl=en>
> >>> .
Re: opensl es Unsupported feature beast 3/26/12 8:36 AM
I don't understand the meaning of that....

Also, when I try this:                          SLEngineCapabilitiesItf engine_capabilities;      res = (*sl)->GetInterface(sl, SL_IID_ENGINECAPABILITIES, (void *)&engine_capabilities); CheckErr(res);

I get "unsupported feature" too :\
Re: opensl es Unsupported feature mic 3/26/12 8:57 AM
>>I don't understand the meaning of that....

It means you can't use it.

/Michael

On Mon, Mar 26, 2012 at 12:32 PM, beast <filipe.oli...@gmail.com> wrote:
I don't understand the meaning of that...

Also if I try something like:            SLEngineCapabilitiesItf engine_capabilities; res = (*sl)->GetInterface(sl, SL_IID_ENGINECAPABILITIES, (void *)&engine_capabilities); CheckErr(res);

It is not supported too. To view this discussion on the web visit https://groups.google.com/d/msg/android-ndk/-/jjNPuHi0lYUJ.

To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.

unk...@googlegroups.com 3/27/12 7:03 AM <This message has been deleted.>
Re: opensl es Unsupported feature beast 3/27/12 7:07 AM
Yes, but why? Is that an hardware problem? Software? Is there any device which support this? If so, which ones? The feature is implemented so I supposed it could be used.....
Re: opensl es Unsupported feature James Woodbridge 3/27/12 7:47 AM
IT means that the device doesn't have the chip onboard so it isn't implemented. You need to find how the device natively handles audio.

On Tue, Mar 27, 2012 at 1:45 PM, beast <filipe.oli...@gmail.com> wrote:
Yes, but why? Is that an hardware limitation? Software limitation? Is this supported in other devices? If so, which ones? Why is this feature implemented if it can't be used? To view this discussion on the web visit https://groups.google.com/d/msg/android-ndk/-/1lOw1SKA-FsJ.

To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.

Re: opensl es Unsupported feature James Woodbridge 4/1/12 5:15 AM
Ok i got round to writing the Cross platform sound component to our Engine today. In doing so i learned that "OpenSL ES" is only a specification requirement as of Android API Level 9 to device manufacuters so some devices wont ever support it........

Which is the approach to sound in the NDK. So if your device level API isn't 9 or above then your sound wont work. I am left to wonder if as OpenSL ES is a hardware specification that a lot of devices wont support sound using the NDK. I am going to stick with the idea that manufactures will support this and switch out sound on some devices. ALternatively make sure your device is up to date as manufacturers might provide as software soloution to this.

All smells a bit like J2ME to me tbh.
Re: opensl es Unsupported feature Glenn Kasten 4/2/12 7:02 AM
In cases like this, where you're trying to decide which API levels to use, the following chart may be helpful:  http://developer.android.com/resources/dashboard/platform-versions.html

It shows the distribution of Android devices by API level. In this particular case of NDK  audio, I calculate that ~66% of devices are at API level 9 or higher at of 2012/03/05. For the other devices, I recommend http://developer.android.com/reference/android/media/AudioTrack.html (and AudioRecord)

AudioTrack and AudioRecord are also the recommended APIs for applications that aren't NDK-centric.
Re: opensl es Unsupported feature James Woodbridge 4/2/12 10:14 AM
Thanks Glenn,
That's really useful, the actual specification of OpenSL ES also seems to be under discussion still too which is relatively annoying for low level work, support for more to come i guess.

To view this discussion on the web visit https://groups.google.com/d/msg/android-ndk/-/uLDmyaXqeSEJ.

To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.

More topics »