staskobzar/vue-audio-visual

waveform overwrites another when 2 wavforms are on screen.

robertglatzel opened this issue · 9 comments

Hello, I've noticed an issue (or perhaps I'm missing something here) that when i have 2 waveform elements loaded, one's canvas will overwrite the other.

The workflow is:
I record audio > it is then loaded into a waveform.
I also load a song into a waveform.

When I click on the song waveform, it retains its waveform.
When I click on the recording waveform, the song waveform is drawn over it.

My guess is that the canvas is being overwritten and is not unique to each instance.

Am i doing something wrong here, or is my assumption correct?

Thanks!

Screenshot 2023-05-06 at 12 33 39 PM

Screenshot 2023-05-06 at 12 33 47 PM

Hello,
No, it is unique per instance. Make sure you are not referencing to the same canvas element from different plugin instances.
Probably I can say more if you see the code that generates those waveforms.

Hi Robert,
Sure, send me a screenshot or code so that I can re-create this bug to start fixing it.

Hey Robert,
Yes, there is a bug with multiple Waveform on the same page. I was able to re-create it.
Thanks for reporting it and for the details. I will need to fix it.
Will posts updates here.
Have a good day!

Hey Robert,
New version 3.0.5 with the fix is released. Please update and try

@robertglatzel It is already released. You can try it