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

How we can get duration after changing the playback rate? #56

Open
tareq0065 opened this issue Dec 11, 2018 · 0 comments
Open

How we can get duration after changing the playback rate? #56

tareq0065 opened this issue Dec 11, 2018 · 0 comments

Comments

@tareq0065
Copy link

tareq0065 commented Dec 11, 2018

is there any way to get adjusted duration after change the playbackrate of audio? I have a dynamic tempo controler to change tempo for all tracks. I want to get the adjusted duration after change playbackrate to hold this for next.
I am trying like below:

tracksList.map((item, index) => { const sound = sono.get(item.id) sound.playbackRate = _this.state.tempo sound.on('complete', (audio) => { console.log(audio) })
But did not getting the adjusted duration. Actually this is not an issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant