I have put my music disk project on pause to work on a birthday present for a friend of mine (childhood friend I used to swap floppies with), but I'm having a problem with sndh's that have a buzzer sound. As soon as the buzzer is used I get 2 bombs and the ST resets. Any idea what could cause this?
My sndh routines are these but I doubt they are the problem, I would suspect in they somehow interfere with something? I have no idea what to investigate (I could play the sndh's in my music disk project so they seem to work all right)...
Code: Select all
init_sndh:
; expects subtune # in d0
move.l sndh_adr,a0 ;init sndhfile
jsr (a0) ;
rts
play_sndh:
movem.l d0-a6,-(sp)
move.l sndh_adr,a0 ;sndhfile
jsr 8(a0) ;play
movem.l (sp)+,d0-a6
rts
exit_sndh:
move.l sndh_adr,a0 ;deinit sndh
jsr 4(a0) ;
lea $ffff8800.w,a0
move.l #$08000000,(a0)
move.l #$09000000,(a0)
move.l #$0a000000,(a0)
rts