public RESULT getSubSound(int index, ref Sound subsound) { RESULT rESULT = RESULT.OK; IntPtr raw = IntPtr.Zero; try { rESULT = Sound.FMOD_Sound_GetSubSound(soundraw, index, ref raw); } catch { rESULT = RESULT.ERR_INVALID_PARAM; } RESULT result; if (rESULT != RESULT.OK) { result = rESULT; } else { if (subsound == null) { Sound sound = new Sound(); sound.setRaw(raw); subsound = sound; } else { subsound.setRaw(raw); } result = rESULT; } return(result); }