0

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.

user76284
  • 1,269
  • 14
  • 29

1 Answers1

3

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.

cwilso
  • 13,610
  • 1
  • 30
  • 35
  • Is it possible somehow by setting the preload attribute to true? – user76284 Mar 27 '14 at 21:33
  • Still no. You just don't get to drill into the – cwilso Mar 27 '14 at 21:36