public RESULT playSound(CHANNELINDEX channelid, Sound sound, bool paused, ref Channel channel) { RESULT result = RESULT.OK; IntPtr channelraw; Channel channelnew = null; if (channel != null) { channelraw = channel.getRaw(); } else { channelraw = new IntPtr(); } try { result = FMOD_System_PlaySound(systemraw, channelid, sound.getRaw(), (paused ? 1 : 0), ref channelraw); } catch { result = RESULT.ERR_INVALID_PARAM; } if (result != RESULT.OK) { return result; } if (channel == null) { channelnew = new Channel(); channelnew.setRaw(channelraw); channel = channelnew; } else { channel.setRaw(channelraw); } return result; }
public RESULT recordStart(int id, Sound sound, bool loop) { return FMOD_System_RecordStart(systemraw, id, sound.getRaw(), (loop ? 1 : 0)); }
public RESULT setSubSound(int index, Sound subsound) { IntPtr subsoundraw = subsound.getRaw(); return FMOD_Sound_SetSubSound(soundraw, index, subsoundraw); }