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.
> >>>>>> **com <
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/**msg/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>
> >>> .
> >>> 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>
> >>> .