mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-21 00:52:43 +02:00
Delete during broadcasting (#7227)
This commit is contained in:
+15
@@ -151,6 +151,21 @@ class VoiceBroadcastRecorderService: VoiceBroadcastRecorderServiceProtocol {
|
||||
})
|
||||
}
|
||||
|
||||
func cancelRecordingVoiceBroadcast() {
|
||||
MXLog.debug("[VoiceBroadcastRecorderService] Cancel recording voice broadcast")
|
||||
audioEngine.stop()
|
||||
audioEngine.inputNode.removeTap(onBus: audioNodeBus)
|
||||
UIApplication.shared.isIdleTimerDisabled = false
|
||||
|
||||
// Remove current chunk
|
||||
if self.chunkFile != nil {
|
||||
self.deleteRecording(at: self.chunkFile.url)
|
||||
self.chunkFile = nil
|
||||
}
|
||||
|
||||
self.tearDownVoiceBroadcastService()
|
||||
}
|
||||
|
||||
// MARK: - Private
|
||||
/// Reset chunk values.
|
||||
private func resetValues() {
|
||||
|
||||
Reference in New Issue
Block a user