Skip to content
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

Confirm file loadd #142

Closed
kyoukhana opened this issue Aug 3, 2020 · 2 comments
Closed

Confirm file loadd #142

kyoukhana opened this issue Aug 3, 2020 · 2 comments

Comments

@kyoukhana
Copy link

I know how to do a group but how can i show the percent loaded when adding files to the group to confirm the file is loaded then I can play the group

var drums = new Pz.Sound('./audio/drums.mp3');
var guitar = new Pz.Sound('./audio/guitar.mp3');
var bass = new Pz.Sound('./audio/bass.mp3');

var group = new Pizzicato.Group([drums, guitar]);

group.addSound(bass);
group.addEffect(reverb);
group.play();           
@kyoukhana
Copy link
Author

So I got it working but loop doesn't seem to work

var group = new Pizzicato.Group();

            var track1 = new Pizzicato.Sound({
                source: 'file',
                loop: 1,
                options: { path: '/api/user/track/audio/9?token='+this.$auth.token() }
            }, function() {
                group.addSound(track1);
            });


            var track2 = new Pizzicato.Sound({
                source: 'file',
                options: { path: '/api/user/track/audio/1?token='+this.$auth.token() }
            }, function() {
                group.addSound(track2);
                group.play();
            });

@kyoukhana
Copy link
Author

I got the loop working now

 options: { path: '/api/user/track/audio/9?token='+this.$auth.token(), loop: true }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant