|
Atari coding BBS
Re: non 50Hz sndh replay question |
Posted by: ggn
|
Jul,02.2014-13:14
|
Here's a short piece of code from a Jaguar .mod player that handles correct speeds in both 50 and 60hz (source at http://www.kewlplace.com/play.s):
move.w CONFIG,d0 ;check for 50/60 hz
and.w #VIDTYPE,d0
beq.s .pal_vid
addq.w #1,sound_frame-vars_space(a6) ;update frame count
cmp.w #6,sound_frame-vars_space(a6) ;skip every 6th frame for correct sound speed
bne.s .pal_vid
move.w #0,sound_frame-vars_space(a6) ;and reset frame count
bra .exit
.pal_vid: bsr play_mod ;play the module!!
This is of course for a 60Hz VBL trying to use a piece of code that was made for 50Hz, i.e. skip every 6th frame. So maybe you could do the opposite? Every 5 frames call the music player twice. At least it sounds logical, no idea how this will sound. And of course you'll be wasting twice the cycles there.
|
[All messages in this thread] [Start new thread]
Topic
|
Posted by
|
Date
|
non 50Hz sndh replay question
|
mkm/lms
|
Jun,27.2014-14:10
|
Re: non 50Hz sndh replay question
|
Bod/STAX
|
Jun,28.2014-08:01
|
Re: non 50Hz sndh replay question
|
mkm/lms
|
Jun,28.2014-11:35
|
Re: non 50Hz sndh replay question
|
gwEm
|
Jun,28.2014-14:14
|
Re: non 50Hz sndh replay question
|
mkm/lms
|
Jun,29.2014-12:46
|
Re: non 50Hz sndh replay question
|
Bod/STAX
|
Jun,29.2014-17:22
|
Re: non 50Hz sndh replay question
|
mkm/lms
|
Jun,29.2014-20:59
|
Re: non 50Hz sndh replay question
|
evil
|
Jun,29.2014-21:37
|
Re: non 50Hz sndh replay question
|
gwEm
|
Jul,02.2014-12:51
|
Re: non 50Hz sndh replay question
|
ggn
|
Jul,02.2014-13:14
|
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.
|