Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Audio visualizer #1686

Open
Meekdai opened this issue Oct 19, 2023 · 2 comments
Open

Audio visualizer #1686

Meekdai opened this issue Oct 19, 2023 · 2 comments
Labels

Comments

@Meekdai
Copy link

Meekdai commented Oct 19, 2023

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 below

https://foobar404.dev/wave.js/

Possible Implementation

  1. 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.

  2. Using wave.js requires an audioElement, which I cannot get in howler.js.
    https://github.com/foobar404/wave.js

I have read the following links #771 , but there is no good solution

@Violexjj
Copy link

I also need to provide new apis to help me visualize the audio.

@MentalGear
Copy link

MentalGear commented Mar 23, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants