ZAK256: Audio CD not handled properly
|Reported by:||SF/hibernatus||Owned by:||fingolfin|
Here is the format of an audio track sound:
First of all, the byte at 0xD tells you it's an audio track
(2). Nicer than testing the size.
The specific data starts at 0x16:
byte: track number
byte: number of times you play the track.
byte: start (to cut the beginning of a song)
Here is how to read the start/end time:
value = (time * 60 + time) * 75 + time;
value is in 75ths of seconds (which means time is in
minutes and time is in seconds).
About the number of times to play:
0xFF means infinite
0 means "play once"
1 means "play twice", etc.
But i think it was a bug because there are only 2 sounds
which aren't looped infinitely (intro tune, and boom box
tune by Razor and the Scummettes), and both of them
are played twice while we'd logically expect them to be
I think the author thought 1 meant "play once".
Ticket imported from: #762593. Ticket imported from: bugs/928.