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

Try playing sounds backwards when scrubbing backwards through time #20

Open
nwinter opened this issue Jan 1, 2014 · 3 comments
Open

Try playing sounds backwards when scrubbing backwards through time #20

nwinter opened this issue Jan 1, 2014 · 3 comments

Comments

@nwinter
Copy link
Contributor

@nwinter nwinter commented Jan 1, 2014

I don't know if this is even possible in the browser, but wouldn't it be cool if we could transform the audio on-the-fly (or maybe once for each sound when loaded) so that in app/lib/Surface:playScrubbedSounds, we can play reversed versions of the sounds? Or even fast-forwarded versions depending on the playback speed?

If anyone knows of a cool way to do this kind of audio processing on the fly performantly, it should be a ton of fun.

@GlenDC
Copy link
Contributor

@GlenDC GlenDC commented Jan 21, 2014

Do we use a 3rd party API for audio?

@sderickson
Copy link
Contributor

@sderickson sderickson commented Jan 21, 2014

Only this: http://www.createjs.com/Docs/SoundJS/modules/SoundJS.html

But that's really for simplified loading and playing. For reversing or otherwise manipulating sound, we'd want to do something like this:

http://stackoverflow.com/questions/9874167/how-can-i-play-audio-in-reverse-with-web-audio-api

@sderickson
Copy link
Contributor

@sderickson sderickson commented Jan 21, 2014

Also, SoundJS has an example of how they get the Audio API context through their preloader here:

http://www.createjs.com/Demos/SoundJS/MusicVisualizer.html

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

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.