2026-07-03 23:57:49 +02:00
|
|
|
import Foundation
|
|
|
|
|
|
|
|
|
|
/// The recording service used for development, which simulates the audio capture without touching a microphone.
|
|
|
|
|
///
|
|
|
|
|
/// The service is internal on purpose: it only backs the feature's previews and the default values of its model, and is not part of the
|
|
|
|
|
/// package's public interface.
|
2026-07-04 13:41:56 +02:00
|
|
|
struct DummyCapturing: Capturing {
|
2026-07-03 23:57:49 +02:00
|
|
|
|
|
|
|
|
// MARK: Methods
|
|
|
|
|
|
|
|
|
|
/// Simulates the start of an audio recording.
|
|
|
|
|
func start() async throws {}
|
|
|
|
|
|
|
|
|
|
/// Simulates the pause of an ongoing recording.
|
|
|
|
|
func pause() async throws {}
|
|
|
|
|
|
|
|
|
|
/// Simulates the resumption of a paused recording.
|
|
|
|
|
func resume() async throws {}
|
|
|
|
|
|
|
|
|
|
/// Simulates the stop of a recording.
|
|
|
|
|
///
|
|
|
|
|
/// - Returns: An empty audio payload.
|
|
|
|
|
func stop() async throws -> Data {
|
|
|
|
|
.init()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|