audio: add Mixer.Len

This commit is contained in:
faiface 2017-07-08 14:28:34 +02:00
parent 555a1cb8e4
commit 0d3d384378
1 changed files with 4 additions and 0 deletions

View File

@ -4,6 +4,10 @@ type Mixer struct {
streamers []Streamer
}
func (m *Mixer) Len() int {
return len(m.streamers)
}
func (m *Mixer) Play(s ...Streamer) {
m.streamers = append(m.streamers, s...)
}