Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mux ¶
type Mux struct {
// contains filtered or unexported fields
}
Mux is a multiplexer for multiple io.Reader objects.
func (*Mux) Read ¶
Read reads data from all of its readers, interprets it as samples with the bit depth specified during its creation, then adds all of the samples together and fills the buf slice with the result of this.
If there are no readers, Read fills in some zeros to prevent a program from freezing.
func (*Mux) RemoveSource ¶
RemoveSource removes a reader from the Mux.
Click to show internal directories.
Click to hide internal directories.