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

the total duration wavesurfer is giving me is wrong #3707

Open
Johnrobmiller opened this issue May 16, 2024 · 0 comments
Open

the total duration wavesurfer is giving me is wrong #3707

Johnrobmiller opened this issue May 16, 2024 · 0 comments
Labels

Comments

@Johnrobmiller
Copy link
Contributor

Johnrobmiller commented May 16, 2024

I have a audio file that is exactly 6.84 seconds long. I use js to and my OS to confirm that it exactly that duration. However, when I load it into Wavesurfer and call ws.getDuration(), wavesurfer is wrongly reporting that it is 6.81795 seconds long. This was causing a bug in my app that was difficult to troubleshoot.

The duration that wavesurfer is outputting ought to be exactly the same as the actual duration of the audio file.

Note: wavesurfer gets the duration wrong even if it is manually set in the options, as noted here #3656

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

1 participant