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; }
public RESULT setSoundGroup(SoundGroup soundgroup) { return FMOD_Sound_SetSoundGroup(soundraw, soundgroup.getRaw()); }