simplify recorder

This commit is contained in:
Nick Payne
2025-08-12 13:37:39 +01:00
parent 8b3de5918c
commit a311cc583f
4 changed files with 16 additions and 35 deletions
@@ -1,10 +1,8 @@
import Foundation
/// Binary output with JSON headers (pipe-optimised)
public class BinaryAudioOutputHandler: AudioOutputHandler {
public init() {}
public func handleAudioPacket(_ packet: AudioPacket) {
// TODO: should we use a DispatchQueue instead of writing directly?
// Write raw binary audio data directly to stdout
FileHandle.standardOutput.write(packet.data)
}