Reputation: 1328
Is there a way to extract the AudioBuffer of an element for analysis? I want to avoid dealing with cross-origin issues that arise when using an XMLHttpRequest, if possible.
Upvotes: 0
Views: 154
Reputation: 13908
No, because an element doesn't necessarily have a backing AudioBuffer (it may be streaming an hour-long podcast, for example - you don't want a gigabyte-order AudioBuffer).
It would be possible to RECORD (in realtime, unfortunately, not faster) the output of an element - createmediaelementsource() it and hook it up to code like RecordJS.
Upvotes: 3