예제 #1
0
파일: fmod.cs 프로젝트: Cram974/noobzone
        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;
        }
예제 #2
0
파일: fmod.cs 프로젝트: Cram974/noobzone
 public RESULT setSoundGroup(SoundGroup soundgroup)
 {
     return FMOD_Sound_SetSoundGroup(soundraw, soundgroup.getRaw());
 }