Skip to content

Commit

Permalink
fix deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
supermihi committed Jan 24, 2024
1 parent 7631259 commit 86b515d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ctypes.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ cdef extern from 'taglib/tpropertymap.h' namespace 'TagLib':

cdef extern from 'taglib/audioproperties.h' namespace 'TagLib':
cdef cppclass AudioProperties:
int length()
int lengthInMilliseconds()
int bitrate()
int sampleRate()
int channels()
Expand Down
2 changes: 1 addition & 1 deletion src/taglib.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ cdef class File:
property length:
def __get__(self):
self.check_closed()
return self.cFile.audioProperties().length()
return self.cFile.audioProperties().lengthInMilliseconds() / 1_000

property bitrate:
def __get__(self):
Expand Down

0 comments on commit 86b515d

Please sign in to comment.