def __init__(self, data: Union[FileIO, BufferedReader]) -> None:
chunk_name = data.read(4)
if chunk_name != b'MTrk':
raise ValueError("Track Chunk header invalid")
self.length = int.from_bytes(data.read(4), 'big')
评论列表
文章目录