id,summary,reporter,owner,description,type,status,priority,component,version,resolution,keywords,cc,game 928,ZAK256: Audio CD not handled properly,SF/hibernatus,fingolfin,"{{{#!Markdown 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\[3\]: start \(to cut the beginning of a song\) byte\[3\]: end Here is how to read the start/end time: value = \(time\[0\] \* 60 + time\[1\]\) \* 75 + time\[2\]; value is in 75ths of seconds \(which means time\[0\] is in minutes and time\[1\] 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 played once. I think the author thought 1 meant "play once". }}} {{{#!div style=""font-size: 75%"" Ticket imported from: !#762593. Ticket imported from: bugs/928. }}}",defect,closed,normal,Engine: SCUMM,,fixed,,,Zak McKracken