... why did they say skip was 32 bit

This commit is contained in:
Artemis Tosini 2024-04-04 07:29:44 +00:00
parent b17a319859
commit bbfde0b795
Signed by: artemist
GPG key ID: EE5227935FE3FF18

View file

@ -53,8 +53,7 @@ def write_opus(ktss: bytes, filename: pathlib.Path):
channels = ktss[0x29] channels = ktss[0x29]
(sample_rate, num_samples) = struct.unpack("<II", ktss[0x2C:0x34]) (sample_rate, num_samples) = struct.unpack("<II", ktss[0x2C:0x34])
(start_offset, data_size) = struct.unpack("<II", ktss[0x40:0x48]) (start_offset, data_size) = struct.unpack("<II", ktss[0x40:0x48])
# (skip,) = struct.unpack("<I", ktss[0x58:0x5C]) (skip,) = struct.unpack("<H", ktss[0x58:0x5A])
skip = 0
stream_count = ktss[0x5A] stream_count = ktss[0x5A]
coupled_count = ktss[0x5B] coupled_count = ktss[0x5B]
channel_mapping = ktss[0x5C : 0x5C + channels] channel_mapping = ktss[0x5C : 0x5C + channels]