[XGM] PCM sfx doesn't start
Posted: Thu Oct 24, 2019 5:32 pm
I noticed sometimes, PCM sfx doesn't start when I call XGM_playPCM. Especially when I play very close sfx.
Therefore I have the 3 questions :
1) is the priority the only thing that can prevent a PCM to be played ?
2) does a priority of 15 mean that the PCM will overpass any playing PCM (so it can't be muted)
3) is the following command :
the right way to test if a PCM channel is "free", or is it rather something like :
?
Thanks in advance !
Therefore I have the 3 questions :
1) is the priority the only thing that can prevent a PCM to be played ?
2) does a priority of 15 mean that the PCM will overpass any playing PCM (so it can't be muted)
3) is the following command :
Code: Select all
if (!XGM_isPlayingPCM(SOUND_PCM_CH1_MSK)) {
// do stuff
}
Code: Select all
if (!(XGM_isPlayingPCM(0xFFFF) & SOUND_PCM_CH1_MSK)) {
// do stuff
}
Thanks in advance !