iOS Question Error using AudioRecorder (Solved)

Cadenzo

Active Member
Licensed User
Longtime User
I get an strange error, trying to record a simple wave-file.
Private recorder As AudioRecorder (iMedia Version: 1.22) in Sub Process_Globals

B4X:
Sub StartRecording
    recorder.Initialize(File.DirDocuments, "Test.wav", 44100, True, 16, False)
    recorder.Record
    'Log("StartRecording")
End Sub

Sub btnStartRecord_Click
    StartRecording
'    btnStartRecord.Enabled = False
'    btnStopRecord.Enabled = True
End Sub

------------------
The error Log:
Application_Start
Application_Active
SignalHandler 6
Error occurred on line: 43 (FrmWave)
Signal - 6
Stack Trace: (
"0 TheClarinet SignalHandler + 112",
"1 libsystem_platform.dylib 0x1afc0251 _sigtramp + 16",
"2 libsystem_kernel.dylib 0x1af09dbb <redacted> + 64",
"3 libsystem_kernel.dylib 0x1af09df5 system_set_sfi_window + 0",
"4 TCC <redacted> + 198",
"5 TCC <redacted> + 0",
"6 TCC <redacted> + 352",
"7 libxpc.dylib <redacted> + 46",
"8 libxpc.dylib <redacted> + 26",
"9 libdispatch.dylib <redacted> + 536"
)

------------------
The line 43 is the End Sub of Sub btnStartRecord_Click.
 

Cadenzo

Active Member
Licensed User
Longtime User
<Solved> It is not, that I am not searching for solutions, before posting my questions. But again I found the solution short after posting by myself :) Here it is:
Add this line to your project:
#PlistExtra:<key>NSMicrophoneUsageDescription</key><string>Usage explanation here...</string>
 
Upvote 0
Top