Skip to content

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

@tareq0065

Description

@tareq0065

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions