Chapter     13

Native Sound API

In the previous chapter, you explored the multiple flavors of the native graphics APIs that are provided by the Android platform. Starting from Android OS version 2.3, API Level 9, the Android platform also provides a native sound API, enabling the native code to play and record audio without invoking any method at Java layer. Android native sound support is based on the OpenSL ES 1.0.1 standard from Khronos Group. OpenSL ES is the short form of the Open Sound Library for Embedded Systems. This chapter will briefly demonstrate the OpenSL ES native sound API pertaining to Android platform.

Using the OpenSL ES API

As the OpenSL ES specification is large, this chapter will only cover the pieces that pertain to the ...

Get Pro Android C++ with the NDK now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.