public static void GetreverbProp(REVERBTYPE type, ref FMOD.REVERB_PROPERTIES prop) { prop.AirAbsorptionHF = REVERB[(int)type].AirAbsorptionHF; prop.DecayHFRatio = REVERB[(int)type].DecayHFRatio; prop.DecayLFRatio = REVERB[(int)type].DecayLFRatio; prop.DecayTime = REVERB[(int)type].DecayTime; prop.Density = REVERB[(int)type].Density; prop.Diffusion = REVERB[(int)type].Diffusion; prop.EchoDepth = REVERB[(int)type].EchoDepth; prop.EchoTime = REVERB[(int)type].EchoTime; prop.EnvDiffusion = REVERB[(int)type].EnvDiffusion; prop.Environment = REVERB[(int)type].Environment; prop.EnvSize = REVERB[(int)type].EnvSize; prop.Flags = REVERB[(int)type].Flags; prop.HFReference = REVERB[(int)type].HFReference; prop.Instance = REVERB[(int)type].Instance; prop.LFReference = REVERB[(int)type].LFReference; prop.ModulationDepth = REVERB[(int)type].ModulationDepth; prop.ModulationTime = REVERB[(int)type].ModulationTime; prop.Reflections = REVERB[(int)type].Reflections; prop.ReflectionsDelay = REVERB[(int)type].ReflectionsDelay; prop.ReflectionsPan = REVERB[(int)type].ReflectionsPan; prop.Reverb = REVERB[(int)type].Reverb; prop.ReverbDelay = REVERB[(int)type].ReverbDelay; prop.ReverbPan = REVERB[(int)type].ReverbPan; prop.Room = REVERB[(int)type].Room; prop.RoomHF = REVERB[(int)type].RoomHF; prop.RoomLF = REVERB[(int)type].RoomLF; prop.RoomRolloffFactor = REVERB[(int)type].RoomRolloffFactor; }
public static void SetReverbProp(REVERBTYPE type, FMOD.REVERB_PROPERTIES prop) { REVERB[(int)type].AirAbsorptionHF = prop.AirAbsorptionHF; REVERB[(int)type].DecayHFRatio = prop.DecayHFRatio; REVERB[(int)type].DecayLFRatio = prop.DecayLFRatio; REVERB[(int)type].DecayTime = prop.DecayTime; REVERB[(int)type].Density = prop.Density; REVERB[(int)type].Diffusion = prop.Diffusion; REVERB[(int)type].EchoDepth = prop.EchoDepth; REVERB[(int)type].EchoTime = prop.EchoTime; REVERB[(int)type].EnvDiffusion = prop.EnvDiffusion; REVERB[(int)type].Environment = prop.Environment; REVERB[(int)type].EnvSize = prop.EnvSize; REVERB[(int)type].Flags = prop.Flags; REVERB[(int)type].HFReference = prop.HFReference; REVERB[(int)type].Instance = prop.Instance; REVERB[(int)type].LFReference = prop.LFReference; REVERB[(int)type].ModulationDepth = prop.ModulationDepth; REVERB[(int)type].ModulationTime = prop.ModulationTime; REVERB[(int)type].Reflections = prop.Reflections; REVERB[(int)type].ReflectionsDelay = prop.ReflectionsDelay; REVERB[(int)type].ReflectionsPan = prop.ReflectionsPan; REVERB[(int)type].Reverb = prop.Reverb; REVERB[(int)type].ReverbDelay = prop.ReverbDelay; REVERB[(int)type].ReverbPan = prop.ReverbPan; REVERB[(int)type].Room = prop.Room; REVERB[(int)type].RoomHF = prop.RoomHF; REVERB[(int)type].RoomLF = prop.RoomLF; REVERB[(int)type].RoomRolloffFactor = prop.RoomRolloffFactor; }
public static void SetReverb(REVERBTYPE type) { if (system == null) { return; } system.setReverbAmbientProperties(ref REVERB[(int)type]); reverb = type; }