Skip to content

Commit

Permalink
Fix incorrect frames to MSF/HMSF conversion
Browse files Browse the repository at this point in the history
Tagged new release (0.4.4) too.

Signed-off-by: JoeLametta <JoeLametta@users.noreply.github.com>
  • Loading branch information
JoeLametta committed Dec 5, 2019
1 parent 0cd74ef commit d182ae8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion eaclogger/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.4.3'
__version__ = '0.4.4'
8 changes: 4 additions & 4 deletions eaclogger/logger/eac.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def _framesToMSF(self, frames):
f = frames % common.FRAMES_PER_SECOND
frames -= f
s = (frames / common.FRAMES_PER_SECOND) % 60
frames -= s * 60
frames -= s * common.FRAMES_PER_SECOND
m = frames / common.FRAMES_PER_SECOND / 60
return "%2d:%02d.%02d" % (m, s, f)

Expand All @@ -33,9 +33,9 @@ def _framesToHMSF(self, frames):
f = frames % common.FRAMES_PER_SECOND
frames -= f
s = (frames / common.FRAMES_PER_SECOND) % 60
frames -= s * 60
m = frames / common.FRAMES_PER_SECOND / 60
frames -= m * 60
frames -= s * common.FRAMES_PER_SECOND
m = (frames / common.FRAMES_PER_SECOND / 60) % 60
frames -= m * common.FRAMES_PER_SECOND * 60
h = frames / common.FRAMES_PER_SECOND / 60 / 60
return "%2d:%02d:%02d.%02d" % (h, m, s, f)

Expand Down

0 comments on commit d182ae8

Please sign in to comment.