Renamed the RecordingService protocol in the Recording package target as Capturing.

This commit is contained in:
2026-07-04 13:41:56 +02:00
parent 69e30a9947
commit be130eb05f
8 changed files with 57 additions and 57 deletions
@@ -0,0 +1,27 @@
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.
struct DummyCapturing: Capturing {
// 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()
}
}