-
Notifications
You must be signed in to change notification settings - Fork 227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Playback modes for groups #33
base: master
Are you sure you want to change the base?
Conversation
Great, thanks. I will check that as soon as possible but not so much time to work on it currently. Thanks again for your contribution. |
When is this going to be merged. I would love to use the chain to run through sounds in a sequence |
Could anybody tell me scenario when |
Playing a list of sounds in order can be applied in several places. I use it for the Quran to play each verse from start to finish. |
Hello, I think those features are great ideas. but Group is not the right place for these features. To many weird behaviors. var myPlaylist = buzz.playlist(sound1, sound2, group1);
myPlaylist.shuffle();
myPlaylist.play();
myPlaylist.next();
myPlaylist.previous();
// etc...
var nowPlaying = myPlaylist.getCurrentlyPlaying();
console.log(nowPlaying.getTime()); What do you think? |
Hi Jay, Yes, I agree with your suggestion. I guess that, apart from the specific playlist methods, they should also provide the basic methods that are already available for sound and group, like mute()/unmute(), loop()/unloop(), etc... |
Hi guys, I think that's a good idea to separate these abstractions but the primary distinction between |
Hello @trippah |
Hi there,
I made this little addition to the groups, maybe it can be helpful.
Right now you can only play group sounds all together at the same time, so I introduced the following playback modes:
blend
: default mode, play the sounds all together (like it is right now)random
: play a random sound of the groupchain
: play the sounds in a sequence, in the order they are found in the arrayIt only works with
group.play()
(pausing a random sound, for example, doesn't make much sense, I think).Other methods added:
group.getPlaybackMode()
group.setPlaybackMode(mode)
Thank you!
Alberto