SoundEngine.cpp SetEffectPosition()

Discussion in 'iPhone/iPad Programming' started by mlady, May 4, 2009.

  1. macrumors member

    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.
  2. macrumors 68000


    Volume is adjusted by
    SoundEngine_SetEffectLevel(UInt32 inEffectIDFloat32 inValue);
    You use it like:

    SoundEngine_SetEffectLevel(mySound0.5); // from 0.0 to 1.0
    It's right above SetEffectPosition in the header ;).

Share This Page