From 1593661c255155eb5524fc51141f9f1dd6052b30 Mon Sep 17 00:00:00 2001 From: Volker Fischer Date: Tue, 21 Jan 2014 20:12:41 +0000 Subject: [PATCH] added some android test code --- android/sound.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/android/sound.cpp b/android/sound.cpp index f0869c89..4dd6690f 100644 --- a/android/sound.cpp +++ b/android/sound.cpp @@ -110,15 +110,21 @@ CSound::CSound ( void (*fpNewProcessCallback) ( CVector& psData, void* ar &recorder ); // get the audio recorder simple buffer queue interface +// TEST +SLresult test = (*recorderObject)->GetInterface ( recorderObject, SL_IID_ANDROIDSIMPLEBUFFERQUEUE, &recorderSimpleBufQueue ); - +// TEST +if ( test == SL_RESULT_SUCCESS ) +{ // register the audio input callback (*recorderSimpleBufQueue)->RegisterCallback ( recorderSimpleBufQueue, processInput, this ); - +} +// TEST +#if 0 // configure the output buffer queue SLDataLocator_AndroidSimpleBufferQueue outBufferQueue; outBufferQueue.locatorType = SL_DATALOCATOR_ANDROIDSIMPLEBUFFERQUEUE; @@ -169,6 +175,7 @@ CSound::CSound ( void (*fpNewProcessCallback) ( CVector& psData, void* ar (*playerSimpleBufQueue)->RegisterCallback ( playerSimpleBufQueue, processOutput, this ); +#endif } void CSound::CloseOpenSL()