Benjamin Rumble
2014-05-06 00:36:38 UTC
looks like you CAN now do this
http://isflashdeadyet.com/tests/web-audio-visualization/
http://isflashdeadyet.com/tests/web-audio-visualization/
Hey,
is there a way to use the AudioBuffer from a
MediaElementAudioSourceNode as a BufferSourceNode?
I'd really love to use methods like noteOn and noteGrain on a audio
source retrieved from a <audio/> element.
âvar context = new webkitAudioContext();
var mediaSource = context.createMediaElementSource( myAudioElement );
var bufferSource = context.createBufferSource();
bufferSource.buffer = mediaSource.getBuffer() // <- fantasy code...
bufferSource.connect(context.destination);
bufferSource.noteOn(0);
â
Is that possible by any chance ?
Of course there's the possibilty of loading the AudioData directly
into the buffer via XHR request, but the request underlies some
restrictions (hello CORS) which the audio element does not.
Thank you in advance!
Cheers
Max
is there a way to use the AudioBuffer from a
MediaElementAudioSourceNode as a BufferSourceNode?
I'd really love to use methods like noteOn and noteGrain on a audio
source retrieved from a <audio/> element.
âvar context = new webkitAudioContext();
var mediaSource = context.createMediaElementSource( myAudioElement );
var bufferSource = context.createBufferSource();
bufferSource.buffer = mediaSource.getBuffer() // <- fantasy code...
bufferSource.connect(context.destination);
bufferSource.noteOn(0);
â
Is that possible by any chance ?
Of course there's the possibilty of loading the AudioData directly
into the buffer via XHR request, but the request underlies some
restrictions (hello CORS) which the audio element does not.
Thank you in advance!
Cheers
Max
--
You received this message because you are subscribed to the Google Groups "Chromium HTML5" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-html5+unsubscribe-F7+***@public.gmane.org
To post to this group, send email to chromium-html5-F7+***@public.gmane.org
Visit this group at http://groups.google.com/a/chromium.org/group/chromium-html5/.
For more options, visit https://groups.google.com/a/chromium.org/d/optout.
You received this message because you are subscribed to the Google Groups "Chromium HTML5" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-html5+unsubscribe-F7+***@public.gmane.org
To post to this group, send email to chromium-html5-F7+***@public.gmane.org
Visit this group at http://groups.google.com/a/chromium.org/group/chromium-html5/.
For more options, visit https://groups.google.com/a/chromium.org/d/optout.