Can't change panning once an effect has started
Posted: Sun May 18, 2014 4:41 pm
I'm just modifying the basic_sound example, the boom sound effect is setup like this:
So that it plays out of the right speaker, this code works.
But if I get the effect number and then try to change panning after it has started, like so:
It still plays out of the right speaker.
I have tested on DesMume and real hardware.
Code: Select all
mm_sound_effect boom = {
{ SFX_BOOM } , // id
(int)(1.0f * (1<<10)), // rate
0, // handle
255, // volume
255, // panning
};
But if I get the effect number and then try to change panning after it has started, like so:
Code: Select all
if ( keys_pressed & KEY_B ) {
u8 b = mmEffectEx(&boom);
mmEffectPanning(b, 0);
}
I have tested on DesMume and real hardware.