Mixer: rename Play to Add

This commit is contained in:
faiface
2019-02-28 22:38:05 +01:00
parent 71ce6ecc6f
commit dded13c1d4
2 changed files with 3 additions and 3 deletions

View File

@@ -11,8 +11,8 @@ func (m *Mixer) Len() int {
return len(m.streamers)
}
// Play adds Streamers to the Mixer.
func (m *Mixer) Play(s ...Streamer) {
// Add adds Streamers to the Mixer.
func (m *Mixer) Add(s ...Streamer) {
m.streamers = append(m.streamers, s...)
}

View File

@@ -79,7 +79,7 @@ func Unlock() {
// Play starts playing all provided Streamers through the speaker.
func Play(s ...beep.Streamer) {
mu.Lock()
mixer.Play(s...)
mixer.Add(s...)
mu.Unlock()
}