sono
sono copied to clipboard
How we can get duration after changing the playback rate?
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.