private FMOD_Channel_GetCurrentSound ( |
||
channel | ||
sound | ||
return | RESULT |
public RESULT getCurrentSound(ref Sound sound) { RESULT rESULT = RESULT.OK; IntPtr raw = IntPtr.Zero; try { rESULT = Channel.FMOD_Channel_GetCurrentSound(channelraw, ref raw); } catch { rESULT = RESULT.ERR_INVALID_PARAM; } RESULT result; if (rESULT != RESULT.OK) { result = rESULT; } else { if (sound == null) { Sound sound2 = new Sound(); sound2.setRaw(raw); sound = sound2; } else { sound.setRaw(raw); } result = rESULT; } return(result); }