OpenSL ES tutorial

699 views
Skip to first unread message

alex dashevski

unread,
Jul 28, 2018, 9:55:30 AM7/28/18
to android-ndk
Hi,

I'm looking for a tutorial for OpenSL ES.
I'm interested in audio manipulation function(algorithm as WSOLA or pitch shifting).

Thanks,
Alex

Glenn Kasten

unread,
Jul 29, 2018, 7:09:14 AM7/29/18
to android-ndk
For OpenSL ES native audio API, see https://developer.android.com/ndk/guides/audio/opensl/
and the links from there to other articles.

For the newer AAudio native audio API, see https://developer.android.com/ndk/guides/audio/

For the Oboe wrapper above both OpenSL ES and AAudio, see

None of these has tutorials about writing DSP code. 
For learning DSP, I suggest you search for introductory books.
There are also discussion groups such as
but you'll often get better answers if you have first skimmed a book.

Alex Dashevski

unread,
Jul 29, 2018, 7:25:20 AM7/29/18
to andro...@googlegroups.com
Where can I find all API with examples? 

--
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 https://groups.google.com/group/android-ndk.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/9c39dcca-9291-4050-a065-d91acc4cf78e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Glenn Kasten

unread,
Jul 29, 2018, 7:32:27 AM7/29/18
to android-ndk
Unfortunately, the link structure is fairly deep, so you will need
to follow the initial links below to find the information you want.

For example, to find the OpenSL ES API reference,
start at the first link I shared, then click on
OpenSL ES Programming Notes, then click on
OpenSL ES 1.0.1 specification in first paragraph.

Similarly to find the sample code for OpenSL ES you need to start at first link,
then click on Getting Started, then Code samples.

See also the other APIs AAudio and Oboe.

On Sunday, July 29, 2018 at 4:25:20 AM UTC-7, alex dashevski wrote:
Where can I find all API with examples? 

On Sun, Jul 29, 2018, 14:09 Glenn Kasten <gka...@android.com> wrote:
For OpenSL ES native audio API, see https://developer.android.com/ndk/guides/audio/opensl/
and the links from there to other articles.

For the newer AAudio native audio API, see https://developer.android.com/ndk/guides/audio/

For the Oboe wrapper above both OpenSL ES and AAudio, see

None of these has tutorials about writing DSP code. 
For learning DSP, I suggest you search for introductory books.
There are also discussion groups such as
but you'll often get better answers if you have first skimmed a book.

On Saturday, July 28, 2018 at 6:55:30 AM UTC-7, alex dashevski wrote:
Hi,

I'm looking for a tutorial for OpenSL ES.
I'm interested in audio manipulation function(algorithm as WSOLA or pitch shifting).

Thanks,
Alex

--
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+unsubscribe@googlegroups.com.

Alex Dashevski

unread,
Jul 30, 2018, 3:57:05 PM7/30/18
to andro...@googlegroups.com, gka...@android.com
Hi,

I'm looking for an example of using setPitch or setRate.
Could you help ?

Thanks,
Alex

Glenn Kasten

unread,
Jul 31, 2018, 10:57:44 AM7/31/18
to android-ndk
This is a command-line unit test, and was written several years ago so may
have suffered bit rot and might no longer be executable as-is. But it could be a starting point:
Reply all
Reply to author
Forward
0 new messages