Open Meekdai opened 8 months ago
I found that in the examples/player, the waveform(siriwave.js) did not follow the music. Is there a way to achieve this which shown in the link below
examples/player
https://foobar404.dev/wave.js/
Does howler.js have an API that can obtain the amplitude and frequency of the current music? So that I can provide it to siriwave.js.
howler.js
siriwave.js
Using wave.js requires an audioElement, which I cannot get in howler.js. https://github.com/foobar404/wave.js
wave.js
I have read the following links https://github.com/goldfire/howler.js/issues/771 , but there is no good solution
I also need to provide new apis to help me visualize the audio.
same problem.
Regarding Workaround 2 (wave.js), you can get the audio element with:
var node = audio._sounds[0]._node //node is an HTMLAudioElement
source: https://stackoverflow.com/a/74982310/5037146
Feature Proposal
I found that in the
examples/player
, the waveform(siriwave.js) did not follow the music. Is there a way to achieve this which shown in the link belowhttps://foobar404.dev/wave.js/
Possible Implementation
Does
howler.js
have an API that can obtain the amplitude and frequency of the current music? So that I can provide it tosiriwave.js
.Using
wave.js
requires an audioElement, which I cannot get inhowler.js
. https://github.com/foobar404/wave.jsI have read the following links https://github.com/goldfire/howler.js/issues/771 , but there is no good solution