Try playing sounds backwards when scrubbing backwards through time #20

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

Projects

None yet

3 participants

@nwinter
Contributor
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
Contributor
GlenDC commented Jan 21, 2014

Do we use a 3rd party API for audio?

@sderickson
Contributor

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
Contributor

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