Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Feb 18, 2017 6:47:59 GMT -5
I've never been able to quite decipher if more than one sound effect can play at a time. This is the typical code I see:
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
I'm not sure if there is a way to declare which channel the sound plays in from this code snippet. I also don't know if this will interfere with music playback. midi2vgm seems to use the YM2612 channels 1 through 5. If I play back more than one sound (once I know how to do so) will it mess with the music?
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Feb 18, 2017 10:34:03 GMT -5
The |1 can be changed from 0 to 3. This is the channel, so you can play multiple effects at once (up to 4)
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Feb 18, 2017 14:50:28 GMT -5
The |1 can be changed from 0 to 3. This is the channel, so you can play multiple effects at once (up to 4) Thank you for the clarification! And, just to be super clear: these aren't the same "channels" as the music tracks are playing on, right?
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Feb 21, 2017 0:39:36 GMT -5
Nope, different channel.
|
|