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

Audio element route to stage input #16

Open
porhack opened this issue Aug 29, 2016 · 4 comments
Open

Audio element route to stage input #16

porhack opened this issue Aug 29, 2016 · 4 comments

Comments

@porhack
Copy link

porhack commented Aug 29, 2016

Hi there,
Just wonder if there's an option to route an audio element to the stage input, then i can control the audio source itself (forward and backward).
I'd like to know if it's possible and how it should work.

Thanks,
Isaac

@porhack
Copy link
Author

porhack commented Aug 29, 2016

Or maybe it can be made much easier, Can i start playing audio track at currentTime of 10 sec for example through the api? This can help me a lot!
Waiting for your response,
Isaac

@tombassrosenfeld
Copy link

tombassrosenfeld commented May 22, 2020

Hey @porhack, did you ever get anywhere with this? I've been trying to work out a way of using an audio node as an input. I did a bit of hacking and managed to pass in a context when instantiating a stage but there doesn't seem to be an input type that will accept buffers from outside the library.

I'm new to the web audio API so I hope my terminology isn't too confusing.

I also realise you opened this four years ago. Apologies for the dredge.

@dashersw
Copy link
Owner

@tombassrosenfeld have you seen the examples? They don't work with audio nodes but outside buffers. They use pb.io.FileInput which accepts a file URL. FileInput class extends the pb.io.Input class, which is a wrapper around AudioBufferSourceNode, where you can load an AudioBuffer by using the setSourceBuffer method on pb.io.Input class.

@tombassrosenfeld
Copy link

Hey @dashersw, sorry, I missed your response and have been away from the project for a while. I have looked at the examples but I was hoping to route multiple buffers (think a buffer per string) to a single "input" node. The issue for me is the single buffer.

Thanks for taking the time to reply.

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

3 participants