class

AudioStreamer

Inherits Reference < Object

Constants

Log = ::Log.for(self)

Constructors

new(audio_device : String, sample_rate : Int32 = 48000, channels : Int32 = 2, frame_size : Int32 = 960)
Source

Instance methods

add_client(channel : Channel(Tuple(Bytes, Int64)))
Source
client_count
Source
remove_client(channel : Channel(Tuple(Bytes, Int64)))
Source
running?
Source
start_streaming

Start the background audio streaming fiber (publisher)

Source
stop_streaming
Source
stream_to_http_response(response)

For HTTP endpoint: subscribe, stream, and unsubscribe

Source