added some android test code

This commit is contained in:
Volker Fischer 2014-01-21 20:12:41 +00:00
parent d7a41b5076
commit 1593661c25
1 changed files with 9 additions and 2 deletions

View File

@ -110,15 +110,21 @@ CSound::CSound ( void (*fpNewProcessCallback) ( CVector<short>& 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<short>& psData, void* ar
(*playerSimpleBufQueue)->RegisterCallback ( playerSimpleBufQueue,
processOutput,
this );
#endif
}
void CSound::CloseOpenSL()