Dead Hackers Society
Other BBSes »
 
 
Demoscene   Coding   CT60   Buy/sell

Atari demoscene BBS
 
Re: non timer c sndh files
Posted by: evil Apr,16.2004-13:11 

I assume he means that the calling method is timer-c, not the actual
special effects.

But yes, there are at least VBL-tunes, and if you really need to call
tunes from another timer, just change TCXXX into TBXXX, but make sure that
the music driver does not use B OR C then. The OS needs C free from
special effects to survive! SND-Player hooks into the system C (200Hz) and
approximates the replay frequency from these 200Hz. F.ex. a 60Hz song will
not play at true 60, but so close I bet you can't spot the difference.

timerc:
sub.w #60,timer ;simulated vbl-speed
bpl.s noplay
add.w #200,timer
bsr.w playervbl
noplay:
move.l system_c,-(sp)

rts

section data

timer: dc.w 200


Or something like that I belive..

--
Anders Eriksson
ae@dhs.nu








[All messages in this thread]    [Start new thread]

Topic Posted by  Date 
non timer c sndh files gwem Apr,15.2004-19:12
  Re: non timer c sndh files damo-rg Apr,15.2004-21:38
    Re: non timer c sndh files evil Apr,16.2004-13:11
      Re: non timer c sndh files gwem Apr,16.2004-13:30


Reply to this message
Name:
Topic:
Anti-troll code:

Message:

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.
© 1994-2025 Dead Hackers Society Contact: Anders Eriksson