Skip to content

Commit dded13c

Browse files
committed
Mixer: rename Play to Add
1 parent 71ce6ec commit dded13c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

mixer.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ func (m *Mixer) Len() int {
1111
return len(m.streamers)
1212
}
1313

14-
// Play adds Streamers to the Mixer.
15-
func (m *Mixer) Play(s ...Streamer) {
14+
// Add adds Streamers to the Mixer.
15+
func (m *Mixer) Add(s ...Streamer) {
1616
m.streamers = append(m.streamers, s...)
1717
}
1818

speaker/speaker.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ func Unlock() {
7979
// Play starts playing all provided Streamers through the speaker.
8080
func Play(s ...beep.Streamer) {
8181
mu.Lock()
82-
mixer.Play(s...)
82+
mixer.Add(s...)
8383
mu.Unlock()
8484
}
8585

0 commit comments

Comments
 (0)