Handle VoIP buttons when VB is used (#7225)

This commit is contained in:
Phl-Pro
2023-01-10 15:24:46 +01:00
committed by GitHub
parent 4abf645596
commit 2958115762
8 changed files with 64 additions and 20 deletions
@@ -44,6 +44,9 @@ class VoiceBroadcastRecorderService: VoiceBroadcastRecorderServiceProtocol {
// MARK: Public
weak var serviceDelegate: VoiceBroadcastRecorderServiceDelegate?
var isRecording: Bool {
return audioEngine.isRunning
}
// MARK: - Setup
@@ -25,6 +25,9 @@ protocol VoiceBroadcastRecorderServiceProtocol {
/// Service delegate
var serviceDelegate: VoiceBroadcastRecorderServiceDelegate? { get set }
/// Returns if a voice broadcast is currently recording.
var isRecording: Bool { get }
/// Start voice broadcast recording.
func startRecordingVoiceBroadcast()