protected void RegisterSound(FMOD.Sound sound) { IntPtr raw = sound.getRaw(); if (allSounds.ContainsKey(raw)) allSounds.Remove(raw); allSounds.Add(raw, this); }
protected void RegisterChannel(FMOD.Channel channel) { IntPtr raw = channel.getRaw(); if (allChannels.ContainsKey(raw)) allChannels.Remove(raw); allChannels.Add(raw, this); }