question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Pre-rendered Peaks Don't Work for Bars Rendering on 6.0.0

See original GitHub issue

Wavesurfer.js version(s): 6.0.0

Browser and operating system version(s): Chrome latest on macOS

Code needed to reproduce the issue:

The following below works on Wavesurfer.js version 5.2.0 but not on 6.0.0,

let wavesurfer = WaveSurfer.create({
  container: '#wavesurfer,
  backend: 'MediaElement',
  barWidth: 5 // Works when this is omitted, so applies only to bar rendering
})

wavesurfer.load('https://example.com/audio.mp3', arrayOfPeaks)

Use behaviour needed to reproduce the issue:

Observe peaks aren’t pre-rendering, and bar rendering is empty/flat/silent. If i omit the barWidth: 5 option, it works as usual with normal a waveform rendering.

Thanks,

David

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:19 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
lorenzoscommented, Feb 9, 2022

I’ll look into it.

1reaction
dtcoopercommented, Feb 10, 2022

Okay. I’ll make do and experiment with arguments to audiowaveform and see if I come up with anything! Regardless, I appreciate the fix. 😸

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to make RED & YELLOW render bars GREEN ... - YouTube
1:40 how tow render using in/out (and why it's not great) 02:45 How to ... Explaining the work area bar and the in...
Read more >
Ryujinx Changelog - GitHub
Fixes an issue that caused Mario Kart 8 Deluxe to not work properly when older DLC was disabled but not removed on the...
Read more >
v5.0pre13 - February 15 2015 - Cockos Incorporated Forums
"sws extensions don't work - says the version of reaper is incompatible." here too. Take envelopes: set new envelopes to current FX parameter...
Read more >
PATCH NOTES - TETR.IO
I'VE BEEN WORKING HARD, BEHIND THE SCENES. ➔ The entire graphics system has been rewritten and optimized. ➔ The text renderer (TheoryType) has ......
Read more >
Preact - Releases
This hook creates stable unique identifiers that are consistent between server-side rendering (using preact-render-to-string) and client-side hydration.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found