Skip to content

Commit

Permalink
Merge pull request #8 from knandersen/markers-not-showing
Browse files Browse the repository at this point in the history
change dwPosition to be equal to dwSampleOffset for cues
  • Loading branch information
knandersen authored Dec 28, 2022
2 parents 5403bb9 + a021ee0 commit f595857
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/WavHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ export default class WavHandler {
})
}
}

for (let i = 0; i < file.cue.points.length; i++) {
file.cue.points[i].dwPosition = file.cue.points[i].dwSampleOffset
}

const data = file.toDataURI()
saveAs(data, "export.wav")
}
Expand Down

0 comments on commit f595857

Please sign in to comment.