mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-24 01:04:02 +02:00
OpenSL: Always force the use of the default device on Android.
Public issue https://github.com/mackron/miniaudio/issues/379
This commit is contained in:
+1
-1
@@ -36043,7 +36043,7 @@ static ma_result ma_device_init__opensl(ma_device* pDevice, const ma_device_conf
|
|||||||
|
|
||||||
locatorDevice.locatorType = SL_DATALOCATOR_IODEVICE;
|
locatorDevice.locatorType = SL_DATALOCATOR_IODEVICE;
|
||||||
locatorDevice.deviceType = SL_IODEVICE_AUDIOINPUT;
|
locatorDevice.deviceType = SL_IODEVICE_AUDIOINPUT;
|
||||||
locatorDevice.deviceID = (pDescriptorCapture->pDeviceID == NULL) ? SL_DEFAULTDEVICEID_AUDIOINPUT : pDescriptorCapture->pDeviceID->opensl;
|
locatorDevice.deviceID = SL_DEFAULTDEVICEID_AUDIOINPUT; /* Must always use the default device with Android. */
|
||||||
locatorDevice.device = NULL;
|
locatorDevice.device = NULL;
|
||||||
|
|
||||||
source.pLocator = &locatorDevice;
|
source.pLocator = &locatorDevice;
|
||||||
|
|||||||
Reference in New Issue
Block a user