Skip to content

Fix track duration for tracks longer than 1 hour#9

Open
thp wants to merge 1 commit into
gavinbenda:masterfrom
thp:fix-track-duration-hours
Open

Fix track duration for tracks longer than 1 hour#9
thp wants to merge 1 commit into
gavinbenda:masterfrom
thp:fix-track-duration-hours

Conversation

@thp
Copy link
Copy Markdown

@thp thp commented Apr 23, 2022

The duration value includes a "hours" field which needs to be read
and added to the minutes returned.

For reference, Web Minidisc / netmd-js properly reads 4 values and
gets the value right (the USB command seems to be slightly different,
but in any case, Web Minidisc shows the proper duration in its UI).

https://github.com/cybercase/netmd-js/blob/edc2401ea1840cecaeea42339b243f37109f8ece/src/netmd-interface.ts#L728

The duration value includes a "hours" field which needs to be read
and added to the minutes returned.

For reference, Web Minidisc / netmd-js properly reads 4 values and
gets the value right (the USB command seems to be slightly different,
but in any case, Web Minidisc shows the proper duration in its UI).

https://github.com/cybercase/netmd-js/blob/edc2401ea1840cecaeea42339b243f37109f8ece/src/netmd-interface.ts#L728
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

Successfully merging this pull request may close these issues.

1 participant