diff options
author | Glenn Kasten <gkasten@google.com> | 2012-07-03 13:13:53 -0700 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2012-07-03 15:59:04 -0700 |
commit | cd961432e31018599e107ef7bc008fd28d70b0c7 (patch) | |
tree | 4be70e9f1a91ef877b894aa4fbe90c319431cb7c /variablespeed | |
parent | 24c0412fd110566d1e010f92b954e5be219cfe1f (diff) | |
download | android_frameworks_ex-cd961432e31018599e107ef7bc008fd28d70b0c7.tar.gz android_frameworks_ex-cd961432e31018599e107ef7bc008fd28d70b0c7.tar.bz2 android_frameworks_ex-cd961432e31018599e107ef7bc008fd28d70b0c7.zip |
Initialize requested interfaces array
Bug: 6768181
Change-Id: Ic8ca44594aea8a0e50740fe69270464ccdd7da6c
Diffstat (limited to 'variablespeed')
-rw-r--r-- | variablespeed/jni/variablespeed.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/variablespeed/jni/variablespeed.cc b/variablespeed/jni/variablespeed.cc index ea134ec..73ac609 100644 --- a/variablespeed/jni/variablespeed.cc +++ b/variablespeed/jni/variablespeed.cc @@ -582,7 +582,7 @@ static void CreateAndRealizeAudioPlayer(SLuint32 slSampleRate, const size_t playerInterfaceCount = 2; const SLInterfaceID iids[playerInterfaceCount] = { SL_IID_ANDROIDSIMPLEBUFFERQUEUE, SL_IID_ANDROIDCONFIGURATION }; - const SLboolean reqs[playerInterfaceCount] = { SL_BOOLEAN_TRUE }; + const SLboolean reqs[playerInterfaceCount] = { SL_BOOLEAN_TRUE, SL_BOOLEAN_TRUE }; OpenSL(engineInterface, CreateAudioPlayer, &audioPlayer, &playingSrc, &audioSnk, playerInterfaceCount, iids, reqs); setAudioStreamType(audioPlayer, audioStreamType); @@ -619,7 +619,7 @@ bool AudioEngine::PlayFromThisSource(const SLDataSource& audioSrc) { SL_IID_ANDROIDSIMPLEBUFFERQUEUE, SL_IID_PREFETCHSTATUS, SL_IID_SEEK, SL_IID_METADATAEXTRACTION, SL_IID_ANDROIDCONFIGURATION }; const SLboolean decodePlayerRequired[decoderInterfaceCount] = { - SL_BOOLEAN_TRUE, SL_BOOLEAN_TRUE, SL_BOOLEAN_TRUE, SL_BOOLEAN_TRUE }; + SL_BOOLEAN_TRUE, SL_BOOLEAN_TRUE, SL_BOOLEAN_TRUE, SL_BOOLEAN_TRUE, SL_BOOLEAN_TRUE }; SLDataSource sourceCopy(audioSrc); OpenSL(engineInterface, CreateAudioPlayer, &decoder, &sourceCopy, &decDest, decoderInterfaceCount, decodePlayerInterfaces, decodePlayerRequired); |