Compare commits

...

2 Commits

Author SHA1 Message Date
4am 03e7bdc116
Merge pull request #5 from KrisKennaway/master
Fix rewind() with bit_count > 1
2022-04-11 20:22:46 -04:00
kris 8607aacc15 Fix rewind() with bit_count > 1 2020-12-03 10:49:40 +00:00
1 changed files with 2 additions and 2 deletions

View File

@ -182,8 +182,8 @@ class Track(RawTrack):
n += b << bit_index
yield n
def rewind(self, bit_count):
self.bit_index -= 1
def rewind(self, bit_count=1):
self.bit_index -= bit_count
if self.bit_index < 0:
self.bit_index = self.bit_count - 1
self.revolutions -= 1