Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Does not drowing 2 chanel when audio is to short #3698

Closed
StanislavMelnychek opened this issue May 11, 2024 · 0 comments
Closed

Does not drowing 2 chanel when audio is to short #3698

StanislavMelnychek opened this issue May 11, 2024 · 0 comments
Labels

Comments

@StanislavMelnychek
Copy link

StanislavMelnychek commented May 11, 2024

Bug description

If you use a very short audio it only draws one channel
Could somebody help with this please, spend a lot of time on it already

Environment

  • Browser: Chrome

Minimal code snippet

import WaveSurfer from 'wavesurfer.js'

const wavesurfer = WaveSurfer.create({
  container: document.body,
  waveColor: 'rgb(200, 0, 200)',
  progressColor: 'rgb(100, 0, 100)',
  splitChannels: [{}, {}],
  url: 'https://upload.wikimedia.org/wikipedia/commons/1/11/H_is_for_horse.ogg',
})

wavesurfer.on('click', () => {
  wavesurfer.play()
})

Screenshots

wavesurfer-js-audio-waveform-player-JavaScript-library

Repository owner locked and limited conversation to collaborators May 11, 2024
@katspaugh katspaugh converted this issue into discussion #3699 May 11, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
Projects
None yet
Development

No branches or pull requests

1 participant