Skip to content

Commit f595857

Browse files
authored
Merge pull request #8 from knandersen/markers-not-showing
change dwPosition to be equal to dwSampleOffset for cues
2 parents 5403bb9 + a021ee0 commit f595857

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/WavHandler.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ export default class WavHandler {
3737
})
3838
}
3939
}
40+
41+
for (let i = 0; i < file.cue.points.length; i++) {
42+
file.cue.points[i].dwPosition = file.cue.points[i].dwSampleOffset
43+
}
44+
4045
const data = file.toDataURI()
4146
saveAs(data, "export.wav")
4247
}

0 commit comments

Comments
 (0)