This commit is contained in:
Volker Fischer 2014-01-31 14:15:08 +00:00
parent e34c1f61e0
commit ab8fbae16d
1 changed files with 15 additions and 2 deletions

View File

@ -254,6 +254,18 @@ int CSound::Init ( const int iNewPrefMonoBufferSize )
// TODO make use of the following:
// String sampleRate = am.getProperty(AudioManager.PROPERTY_OUTPUT_SAMPLE_RATE));
// String framesPerBuffer = am.getProperty(AudioManager.PROPERTY_OUTPUT_FRAMES_PER_BUFFER));
/*
// get the Audio IO DEVICE CAPABILITIES interface
SLAudioIODeviceCapabilitiesItf audioCapabilities;
(*engineObject)->GetInterface ( engineObject,
SL_IID_AUDIOIODEVICECAPABILITIES,
&audioCapabilities );
(*audioCapabilities)->QueryAudioInputCapabilities ( audioCapabilities,
inputDeviceIDs[i],
&audioInputDescriptor );
*/
// store buffer size
@ -311,8 +323,6 @@ for ( int i = 0; i < pSound->iModifiedInBufSize; i++ )
pSound->vecsTmpAudioInSndCrd[i];
}
// call processing callback function
pSound->ProcessCallback ( pSound->vecsTmpAudioSndCrdStereo );
}
void CSound::processOutput ( SLAndroidSimpleBufferQueueItf bufferQueue,
@ -328,6 +338,9 @@ void CSound::processOutput ( SLAndroidSimpleBufferQueueItf bufferQueue,
QMutexLocker locker ( &pSound->Mutex );
// call processing callback function
pSound->ProcessCallback ( pSound->vecsTmpAudioSndCrdStereo );
// enqueue the buffer for playback
(*bufferQueue)->Enqueue ( bufferQueue,
&pSound->vecsTmpAudioSndCrdStereo[0],