I am using an AnalyserNode
to analyse audio provided by a MediaElementAudioSourceNode
. Is there a way to sample and analyse the audio that will play x seconds into the future?
No. Unless you want to just slap a delay on the audio output, so you will hear the audio at the right time synced with your "future analysis". But the media player controls, for example, will have that x-second lag.