Exemplo n.º 1
0
        public RESULT getMasterSoundGroup(ref SoundGroup soundgroup)
        {
            RESULT result = RESULT.OK;
            IntPtr soundgroupraw = new IntPtr();
            SoundGroup    soundgroupnew = null;

            try
            {
                result = FMOD_System_GetMasterSoundGroup(systemraw, ref soundgroupraw);
            }
            catch
            {
                result = RESULT.ERR_INVALID_PARAM;
            }
            if (result != RESULT.OK)
            {
                return result;
            }

            if (soundgroup == null)
            {
                soundgroupnew = new SoundGroup();
                soundgroupnew.setRaw(soundgroupraw);
                soundgroup = soundgroupnew;
            }
            else
            {
                soundgroup.setRaw(soundgroupraw);
            }

            return result;
        }
Exemplo n.º 2
0
 public RESULT setSoundGroup(SoundGroup soundgroup)
 {
     return FMOD_Sound_SetSoundGroup(soundraw, soundgroup.getRaw());
 }