| Other BBSes » |
Sommarhack 2020 is cancelled in it's normal format. We're moving it online and
will stream competitions as well as other Atari programmes during July 4 evening.
Click the logo for more info!
Atari demoscene BBS
|Re: Rasters and TimerC SNDH|
Posted by: spkr
In short. Instruments (sounds outputted by the music driver) can be non-timer dependent and timer-depending effects.
Non-timer depending instruments change the YM2149 chips settings whenever the musicdriver (mym) is called (in your example case 56hz, driven by timer c interrupts).
Timer depending instruments change on a different `occurence/timing' than whenever the music driver is called. To achieve this, the music driver, when called, programs the MFP, using timers (timer a, timer b and timer d in MYM case); such that programmed interrupt code is executed. Depending on the instrument (SID, Digisound etc), the timer interrupt timers are scheduled and the userdefined vectors (sound code) are defined.
So, there is the possible cause of your issue(s):
You use timer-based music, while having the wish to use timers for your code as well. In mym, the channel in which the intrument is used, determines which timer is used for timer effect (channel 1; a, channel 2; b, channel 3; d). So it could also very well be that you are overwriting timers that are also used by mym music driver; and weird stuff can happen.
I cant magically debug your code remotely, but if you send me the binary, I can at least explain what makes it crash in your case.
[All messages in this thread] [Start new thread]
What's the anti-troll code?
That's your personal code to be able to add comments and messages on the dhs.nu site.
Don't have a code or forgot it? Fix it here.