You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like AVAudioRecorder processing will stop (isRecording becomes false) if another application starts playing music.
Is there a way to avoid that? (by tweaking the current code or using another API? I am not sure another API returns metering information/averagePowerForChannel).
Making the timer collection more robust
When the application resumes after the previous problem, the metering processing should resume too (isRecording should become true again).
I am unsure about the right fix (hence no PR :)) but I considered something like:
(void)sendProgressUpdate {
if (!_audioRecorder || !_audioRecorder.isRecording) {
if (!_audioRecorder.isRecording) {
// Restart the timer if the recording stopped for some reason
[self stop];
[self start:_progressUpdateInterval];
}
return;
}
(...)
What do you think?
The text was updated successfully, but these errors were encountered:
ncstc1
changed the title
Conflict with other AVAudio player/recorder applications
iOS: Conflict with other AVAudio player/recorder applications
Dec 6, 2022
Hi, I have two questions/comments on iOS:
Conflicts between AVAudio callers
It looks like AVAudioRecorder processing will stop (isRecording becomes false) if another application starts playing music.
Is there a way to avoid that? (by tweaking the current code or using another API? I am not sure another API returns metering information/averagePowerForChannel).
Making the timer collection more robust
When the application resumes after the previous problem, the metering processing should resume too (isRecording should become true again).
I am unsure about the right fix (hence no PR :)) but I considered something like:
What do you think?
The text was updated successfully, but these errors were encountered: