def end_of_track(data: Union[FileIO, BufferedReader]) -> Tuple[int, None, None]:
length_bytes = data.read(4)
length = int.from_bytes(length_bytes, "big")
if length != 0:
raise EventLengthError("End of Track event with non-zero length")
return length, None, None
评论列表
文章目录