HKIncomingStream
public final actor HKIncomingStream
extension HKIncomingStream: AsyncRunner
An actor that provides a stream playback feature.
-
Declaration
Swift
public private(set) var isRunning: Bool { get }
-
soundTransfrom
AsynchronousThe sound transform value control.
Declaration
Swift
public var soundTransfrom: SoundTransform? { get async }
-
Creates a new instance.
Declaration
Swift
public init(_ stream: some HKStream)
-
setSoundTransform(_:
Asynchronous) Sets the sound transform value control.
Declaration
Swift
public func setSoundTransform(_ soundTransfrom: SoundTransform) async
-
Appends a sample buffer for playback.
Declaration
Swift
public func append(_ buffer: CMSampleBuffer)
-
Appends an audio buffer for playback.
Declaration
Swift
public func append(_ buffer: AVAudioBuffer, when: AVAudioTime)
-
attachAudioPlayer(_:
Asynchronous) Attaches an audio player.
Declaration
Swift
public func attachAudioPlayer(_ audioPlayer: AudioPlayer?) async
-
Declaration
Swift
public func startRunning()
-
Declaration
Swift
public func stopRunning()