mirror of
https://github.com/love2d/love.git
synced 2026-08-17 19:23:38 +02:00
iOS: don't try to open audio recording devices for capture.
It hard-crashes inside the alcCaptureOpenDevice call with Apple's OpenAL implementation. See #1912.
This commit is contained in:
@@ -67,7 +67,11 @@ bool RecordingDevice::start(int samples, int sampleRate, int bitDepth, int chann
|
|||||||
if (isRecording())
|
if (isRecording())
|
||||||
stop();
|
stop();
|
||||||
|
|
||||||
|
// This hard-crashes on iOS with Apple's OpenAL implementation, even when
|
||||||
|
// the user gives permission to the app.
|
||||||
|
#ifndef LOVE_IOS
|
||||||
device = alcCaptureOpenDevice(name.c_str(), sampleRate, format, samples);
|
device = alcCaptureOpenDevice(name.c_str(), sampleRate, format, samples);
|
||||||
|
#endif
|
||||||
if (device == nullptr)
|
if (device == nullptr)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user