OSDN Git Service

Allow Android stream type to be set by SLAndroidConfigurationItf.
authorJean-Michel Trivi <jmtrivi@google.com>
Fri, 17 Sep 2010 21:33:31 +0000 (14:33 -0700)
committerJean-Michel Trivi <jmtrivi@google.com>
Fri, 17 Sep 2010 22:47:33 +0000 (15:47 -0700)
commit4e18ff44c76f52102a6cf7d737a91025ca28feae
treeb1cfe86c3cb5154fa3aed23877d4755ec3c08e2a
parentac5c5fd9e7513c046b792662606445ecdef2989c
Allow Android stream type to be set by SLAndroidConfigurationItf.

Allow Android stream type to be set through the
 SLAndroidConfigurationItf interface, instead of the
 SLAndroidStreamTypeItf interface, which is going away before
 release.
 The stream type is now stored in CAudioPlayer, and used before
 the AudioTrack of the player is instanciated.

AudioRecorder preset and AudioPlayer stream type also implement
 the following behavior: when querying a key with a NULL pointer
 as destination for the value, the value size is updated with
 the actual size used to store the value for the given key.

Change-Id: I652a5b463a220698c53fc1d2b485143b794a1d75
opensles/include/SLES/OpenSLES_Android.h
opensles/include/SLES/OpenSLES_AndroidConfiguration.h
opensles/libopensles/IAndroidConfiguration.c
opensles/libopensles/IAndroidStreamType.c
opensles/libopensles/android_AudioPlayer.cpp
opensles/libopensles/android_AudioPlayer.h
opensles/libopensles/android_AudioRecorder.cpp
opensles/libopensles/android_AudioRecorder.h
opensles/libopensles/android_prompts.h [new file with mode: 0644]
opensles/libopensles/sles_allinclusive.h