Skip to content

Commit

Permalink
iOS: don't try to open audio recording devices for capture.
Browse files Browse the repository at this point in the history
It hard-crashes inside the alcCaptureOpenDevice call with Apple's OpenAL implementation.
See #1912.
  • Loading branch information
slime73 committed Jul 22, 2023
1 parent e582677 commit 7706ac7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/modules/audio/openal/RecordingDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,11 @@ bool RecordingDevice::start(int samples, int sampleRate, int bitDepth, int chann
if (isRecording())
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);
#endif
if (device == nullptr)
return false;

Expand Down

0 comments on commit 7706ac7

Please sign in to comment.