Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

mlady

macrumors member
Original poster
Sep 18, 2008
31
0
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.
 
Volume?

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

You use it like:

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

It's right above SetEffectPosition in the header ;).
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.