Categorygithub.com/zephyrtronium/beep-track
modulepackage
1.3.0
Repository: https://github.com/zephyrtronium/beep-track.git
Documentation: pkg.go.dev

# README

track

Go Reference

Package track provides a github.com/faiface/beep Streamer with continuous playback and real-time stream insertion.

A Track defaults to an active streamer, filling in gaps with a silence streamer. Goroutines can set new active streamers concurrently with calls to Stream.

# Functions

New creates a track defaulting to silence and beginning with start as its active streamer.

# Structs

SilenceError is the error returned by Track.Err if the track's silence streamer fails to provide enough samples.
Track is a beep.StreamCloser which synchronously switches between a default streamer and a settable active streamer to provide a constantly playing stream.