kelvinau / circular-audio-wave

JS library for audio visualization in circular wave using Web Audio API and ECharts
MIT License
254 stars 39 forks source link

How to mute audio #10

Open Samuel-Momoh opened 4 years ago

Samuel-Momoh commented 4 years ago

I already build an html5 audio player with controls playing the song and i just need the visualization how do i stop the audio from wave js without stopping the rendering of the visualization

kelvinau commented 4 years ago

Not connecting the source node to the destination will not have the sound played.

i.e. not executing this line https://github.com/kelvinau/circular-audio-wave/blob/master/src/js/circular-audio-wave.js#L324

Feel free to submit a PR to add an option to mute the audio :)