There are a couple of pointers though...
Unless you depack the .SND files found in the archive you will need to depack them, I use the missing link extension to do this however if you comment out the "T=DEPACK" line you can load a .SND that has already been unpacked prior to loading it in.
The main fault in the oriignal was the exclusion of DREG(0) Which holds the song number hence why some tracks would play and others not, i found that any tracks with more than 1 song failed but now its fixed, Yay!
Code: Select all
10 rem STOS sndh player - wahoo! 20 rem original by gwEm/swe (yay!) for gfa (boo!) 30 rem haxXx0red by ggn - wahay! 40 rem given to you by sh3-rg - 0day kodwarez! ;) 50 rem Bugfixed & DREG(0)/Depack routine added by Black of Relix Games 60 rem NB: MOST, if not ALL SNDH Files are packed 70 rem : This source requires THE MISSING LINK EXTENSION 80 rem : However you can unpack the files prior to loading 90 rem : and just "REM" the code where noted 100 gosub 170 : rem load files 110 gosub 240 : rem start music 120 repeat 130 M=mouse key 140 until M<>0 150 gosub 300 : rem stop music 160 end 170 rem load files 180 reserve as work 11,314 : rem make space for inline 190 reserve as work 12,70000 : rem make space for the sndh tune 200 bload "stossndh.bin",start(11) : rem load inline 210 bload "seagulls.snd",start(12) : rem load the sndh tune 220 T=depack(start(12)) : rem Unpack music - You can comment this out tho! 230 return 240 rem set up & start music 250 dreg(7)=50 : rem 50 for 50Hz, 60 for 60Hz 260 dreg(0)=1 : rem DReg(0) Holds the song number 270 areg(6)=start(12) : rem points to sndh 280 call start(11) : rem start playing tune 290 return 300 rem stop music 310 call start(11)+4 : rem stop playing tune 320 return
GGN for the hackingness
SH3-RG for the original STOS source.
And for those following my threads: this was fixed a LONG time ago but i lost the source, this source comes from an old notepad I dug out while working on Frogger ... ALWAYS back stuff up!!
Enjoy you STOSSERS