Open
Description
Instead of polling the player, perhaps it would be better to offer either a callback or a channel style API.
// We can wait for the sound to finish playing using something like this
for player.IsPlaying() {
time.Sleep(time.Millisecond)
}
// Channel style.
<-player.Done()
// Callback style.
player.OnDone(func() {...})
Metadata
Assignees
Labels
No labels
Activity