|
Atari coding BBS
Re: Little dspmod question |
Posted by: ggn
|
Oct,01.2012-08:55
|
I've solved this problem while porting Downfall to the Falcon. First thing you have to do is set the number of tracks replayed after the init, i.e.
bsr dspmod34_setup
move.w #5,dspmod34_player+dspmod34_dsptracks ;4 music + 1 sfx
(I assume your modfile has 4 channels. dspmod can replay up to 8 channels, so it wouldn't be possible to have 8 channels modfile along with sfx)
In addition, you have to modify its volume otherwise you won't hear anything. This is done by changing the values in dspmod34_voltab4 like so:
dspmod34_voltab4:
DC.W $0FFF,$0FFF,$0FFF,$0FFF
DC.W $3FFF,0,0,0
EVEN
The first 4 values are the mod voices volume and the 5th is the sample volume (iirc this goes up to $7fff).
Finally, the value in D1 is the frequency in amiga lingo. The tl;dr version - Use the following formula:
(3546895/D1)=frequency
(so, for example, to replay a 13384hz sample you need to load D1 with 265)
Anyway, I hope I hope I remember things correctly and it works for you.
|
[All messages in this thread] [Start new thread]
Topic
|
Posted by
|
Date
|
Little dspmod question
|
Sallafranque/Thadoss
|
Sep,30.2012-12:11
|
Re: Little dspmod question
|
ggn
|
Oct,01.2012-08:55
|
Re: Little dspmod question
|
evil
|
Oct,01.2012-16:18
|
Re: Little dspmod question
|
ggn
|
Oct,01.2012-21:43
|
Re: Little dspmod question
|
Sallafranque/Thadoss
|
Oct,02.2012-00:08
|
Re: Little dspmod question
|
Sallafranque/Thadoss
|
Oct,03.2012-12:30
|
Re: Little dspmod question
|
Sallafranque/Thadoss
|
Oct,03.2012-12:37
|
Re: Little dspmod question
|
ggn
|
Oct,03.2012-17:13
|
Re: Little dspmod question
|
Sallafranque/Thadoss
|
Oct,03.2012-18:03
|
Re: Little dspmod question
|
ggn
|
Oct,03.2012-22:22
|
Re: Little dspmod question
|
Sallafranque/Thadoss
|
Oct,03.2012-23:45
|
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.
|