You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have multiple, large music files I want to stream from disk, like this:
play song A
stop song A, start playing B
stop B, continue playing A
etc
When a song plays all the way through, I rewind it (via. streamer.Seek(0)).
Given this kind of usage, what I've come up with is to have ctrl := beep.Ctrl{...} where I keep changing ctrl.Streamer to the song I want to play.
However I'm confused about when I need to call speaker.Play(). Do I just call it once, after constructing ctrl? Or every time I change ctrl.Streamer? Or only after I rewind a streamer?
First, thank you for the awesome project!
I have multiple, large music files I want to stream from disk, like this:
When a song plays all the way through, I rewind it (via.
streamer.Seek(0)
).Given this kind of usage, what I've come up with is to have
ctrl := beep.Ctrl{...}
where I keep changingctrl.Streamer
to the song I want to play.However I'm confused about when I need to call
speaker.Play()
. Do I just call it once, after constructingctrl
? Or every time I changectrl.Streamer
? Or only after I rewind a streamer?Thanks for any info!
Original issue: faiface/beep#143
The text was updated successfully, but these errors were encountered: