PDA

View Full Version : SoundEngine.cpp SetEffectPosition()




mlady
May 4, 2009, 10:20 AM
Hi here,

I have this annoying problem!

I can't figure out how to use SoundEngine_SetEffectPosition() for changing the volume of a Looping sound effect. I have been struggeling for 4 hours!

Can anybody please help me? Thanks.



Niiro13
May 4, 2009, 11:21 AM
Volume?

Volume is adjusted by SoundEngine_SetEffectLevel(UInt32 inEffectID, Float32 inValue);

You use it like:

SoundEngine_SetEffectLevel(mySound, 0.5); // from 0.0 to 1.0

It's right above SetEffectPosition in the header ;).