We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 71ce6ec commit dded13cCopy full SHA for dded13c
mixer.go
@@ -11,8 +11,8 @@ func (m *Mixer) Len() int {
11
return len(m.streamers)
12
}
13
14
-// Play adds Streamers to the Mixer.
15
-func (m *Mixer) Play(s ...Streamer) {
+// Add adds Streamers to the Mixer.
+func (m *Mixer) Add(s ...Streamer) {
16
m.streamers = append(m.streamers, s...)
17
18
speaker/speaker.go
@@ -79,7 +79,7 @@ func Unlock() {
79
// Play starts playing all provided Streamers through the speaker.
80
func Play(s ...beep.Streamer) {
81
mu.Lock()
82
- mixer.Play(s...)
+ mixer.Add(s...)
83
mu.Unlock()
84
85
0 commit comments