Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Oct 25, 2015 18:55:44 GMT -5
I can't quite identify where to change and priority and what channel in Stefs XGM driver. How many priority levels are there? Is it 0 first or some larger number? What channels are valid? Which ones should I choose to avoid conflict with music?
Here is the code from Stefs XGM topic that I think is relevant:
boomsound: asm lea BOOMpcm,a1 ; put address of sample in a1 move.l #(BOOMpcm_end-BOOMpcm),d1 ; put length of sample in d1 move.l #((1<<4)|1),d2 ; put priority and channel number in d2 end asm xgm_playPCM return
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Oct 25, 2015 22:31:58 GMT -5
move.l #((1<<4)|ChannelNumber,d2
Hope that helps!
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Oct 27, 2015 10:12:10 GMT -5
move.l #((1<<4)|ChannelNumber,d2 Hope that helps! That surely does, thanks! I'm still wondering: What channels are safe from interfering with music playback? From the Stefs XGM driver topic it *seems* like channels 1-4 are taken. Where is the priority set and what are the valid values?
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Oct 27, 2015 11:55:51 GMT -5
You can use all 4 channels for sound effects. You just want to avoid using FM channel 6 as that's the channel that the PCM sample plays through.
|
|