sound format.
sound is actually just a headerless VOC file. the only blocks found in Avish sounds are of types 1 (actual sound) and 6 (repeat? seems that Avish ignores it anyway).
block format:
db datatype
block data size: 3 bytes (little-endian)
...block data
datatype 06: just skip it, nothing interesting here
datatype 01, actual sound data:
db 1
block data size: 3 bytes (little-endian)
db ratediv ; sample rate; to get sample rate in Hz, do this: samplerate=1000000/(256-ratediv)
block data:
first byte is always data format type; Avish uses only type 0: unsigned 8-bit, mono
then sound data follows.
that's all.
hereby i declare that i WILL NOT investigate music format. i've never programmed OPL and i don't want to read alot of dusty dox just to decode Avish music. my guess is that it's a simple tracker music with instruments in the beginning of the file. but i will not look further into this. if anybody wants to hear the original music in my remake, he can crack the format and send me working player in C. no, just description of the format will not work, i need working code that i can use with OPL3 emulator from AdPlug.
|