... why did they say skip was 32 bit
This commit is contained in:
parent
b17a319859
commit
bbfde0b795
|
@ -53,8 +53,7 @@ def write_opus(ktss: bytes, filename: pathlib.Path):
|
|||
channels = ktss[0x29]
|
||||
(sample_rate, num_samples) = struct.unpack("<II", ktss[0x2C:0x34])
|
||||
(start_offset, data_size) = struct.unpack("<II", ktss[0x40:0x48])
|
||||
# (skip,) = struct.unpack("<I", ktss[0x58:0x5C])
|
||||
skip = 0
|
||||
(skip,) = struct.unpack("<H", ktss[0x58:0x5A])
|
||||
stream_count = ktss[0x5A]
|
||||
coupled_count = ktss[0x5B]
|
||||
channel_mapping = ktss[0x5C : 0x5C + channels]
|
||||
|
|
Loading…
Reference in a new issue