Pre-rendered PCM data does not work as expected #2752
Replies: 4 comments 18 replies
-
@katspaugh I have been looking into this and it seems like just calling This thing works fine with MediaElement. |
Beta Was this translation helpful? Give feedback.
-
Sure, how could I help you ? |
Beta Was this translation helpful? Give feedback.
-
How can I contact you, let me know a suited email for your business, I could then be in touch, thank you. |
Beta Was this translation helpful? Give feedback.
-
I sent you a message as a reply to your message from Fr 8th of March 24, since then I have not received any of your messages. I have just emailed you again, should work. Regards |
Beta Was this translation helpful? Give feedback.
-
I have created the PCM data correctly per https://wavesurfer-js.org/api/class/src/wavesurfer.js~WaveSurfer.html#instance-method-exportPCM and also checked this issue
https://github.com/wavesurfer-js/wavesurfer.js/issues/2439
as well as this commenthttps://github.com/wavesurfer-js/wavesurfer.js/issues/2557#issuecomment-1199946658
.This PCM data is then stored in an array. Here is a REPL of how I create the PCM data.
https://svelte.dev/repl/f4be2c6a630a4b66833c8fe8b06ab9e5?version=3.57.0
wavesurfer.js version(s):
"wavesurfer.js": "^6.6.2"
Browser and operating system version(s):
Firefox 111.0.1 (64-bit), Linux
Code needed to reproduce the issue:
https://svelte.dev/repl/7cee1ab9dce6422eb7b3059433948745?version=3.57.0
(Optional) Steps in the UI to reproduce the issue:
Once the REPL loads there are 2 ways to see that the pre-rendered PCM data does not seem to work with wavesurfer.
After the REPL loads click "+ 5 Seconds" and see the cursor jump to the end of the track. This means that the PCM data for the track was somehow not loaded correctly.
Reload the REPL, this time click "PLAY", you will notice a considerable delay before the track is played. I assume this delay comes from re-loading the PCM data. When I load longer tracks the delay before playing the track becomes 4+ seconds or more.
I would love to be able to use the generated PCM data and load it into wavesurfer correctly. Unfortunately there is no error message that comes up,
wavesurfer.load(audio, peaks);
seems to work. Kindly please do let me know if I have missed something perhaps, thank you.Beta Was this translation helpful? Give feedback.
All reactions