mirror of
https://github.com/HaishinKit/HaishinKit.swift.git
synced 2026-05-07 20:12:28 +00:00
12 lines
490 B
Swift
12 lines
490 B
Swift
import AVFoundation
|
|
import CoreMedia
|
|
import Foundation
|
|
|
|
/// A delegate protocol your app implements to receive capture stream output events.
|
|
public protocol StreamOutput: AnyObject, Sendable {
|
|
/// Tells the receiver to an audio buffer outgoing.
|
|
func stream(_ stream: some StreamConvertible, didOutput audio: AVAudioBuffer, when: AVAudioTime)
|
|
/// Tells the receiver to a video buffer outgoing.
|
|
func stream(_ stream: some StreamConvertible, didOutput video: CMSampleBuffer)
|
|
}
|