зеркало из https://github.com/mozilla/cubeb.git
Bug 1531833 - Automatically count the number of elements in the interface array for recording in cubeb_opensl.c. r?achronop
Differential Revision: https://phabricator.services.mozilla.com/D21744
This commit is contained in:
Родитель
8b7e9c8efe
Коммит
040e82357a
|
@ -847,7 +847,6 @@ opensl_configure_capture(cubeb_stream * stm, cubeb_stream_params * params)
|
|||
lDataSource.pLocator = &lDataLocatorIn;
|
||||
lDataSource.pFormat = NULL;
|
||||
|
||||
const SLuint32 lSoundRecorderIIDCount = 2;
|
||||
const SLInterfaceID lSoundRecorderIIDs[] = { stm->context->SL_IID_RECORD,
|
||||
stm->context->SL_IID_ANDROIDSIMPLEBUFFERQUEUE };
|
||||
const SLboolean lSoundRecorderReqs[] = { SL_BOOLEAN_TRUE, SL_BOOLEAN_TRUE };
|
||||
|
@ -856,7 +855,7 @@ opensl_configure_capture(cubeb_stream * stm, cubeb_stream_params * params)
|
|||
&stm->recorderObj,
|
||||
&lDataSource,
|
||||
&lDataSink,
|
||||
lSoundRecorderIIDCount,
|
||||
NELEMS(lSoundRecorderIIDs),
|
||||
lSoundRecorderIIDs,
|
||||
lSoundRecorderReqs);
|
||||
// Sample rate not supported. Try again with default sample rate!
|
||||
|
@ -875,7 +874,7 @@ opensl_configure_capture(cubeb_stream * stm, cubeb_stream_params * params)
|
|||
&stm->recorderObj,
|
||||
&lDataSource,
|
||||
&lDataSink,
|
||||
lSoundRecorderIIDCount,
|
||||
NELEMS(lSoundRecorderIIDs),
|
||||
lSoundRecorderIIDs,
|
||||
lSoundRecorderReqs);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче