public static REVERB_PROPERTIES LoadPreset(Reverb_Props_Presets p) { if (p == Reverb_Props_Presets.ALLEY) { return(PRESET.ALLEY()); } if (p == Reverb_Props_Presets.GENERIC) { return(PRESET.GENERIC()); } if (p == Reverb_Props_Presets.PADDEDCELL) { return(PRESET.PADDEDCELL()); } if (p == Reverb_Props_Presets.LIVINGROOM) { return(PRESET.LIVINGROOM()); } if (p == Reverb_Props_Presets.BATHROOM) { return(PRESET.BATHROOM()); } if (p == Reverb_Props_Presets.STONEROOM) { return(PRESET.STONEROOM()); } if (p == Reverb_Props_Presets.AUDITORIUM) { return(PRESET.AUDITORIUM()); } if (p == Reverb_Props_Presets.CONCERTHALL) { return(PRESET.CONCERTHALL()); } if (p == Reverb_Props_Presets.CAVE) { return(PRESET.CAVE()); } if (p == Reverb_Props_Presets.ARENA) { return(PRESET.ARENA()); } if (p == Reverb_Props_Presets.HANGAR) { return(PRESET.HANGAR()); } if (p == Reverb_Props_Presets.CARPETTEDHALLWAY) { return(PRESET.CARPETTEDHALLWAY()); } if (p == Reverb_Props_Presets.HALLWAY) { return(PRESET.HALLWAY()); } if (p == Reverb_Props_Presets.STONECORRIDOR) { return(PRESET.STONECORRIDOR()); } if (p == Reverb_Props_Presets.FOREST) { return(PRESET.FOREST()); } if (p == Reverb_Props_Presets.CITY) { return(PRESET.CITY()); } if (p == Reverb_Props_Presets.MOUNTAINS) { return(PRESET.MOUNTAINS()); } if (p == Reverb_Props_Presets.QUARRY) { return(PRESET.QUARRY()); } if (p == Reverb_Props_Presets.PARKINGLOT) { return(PRESET.PARKINGLOT()); } if (p == Reverb_Props_Presets.SEWERPIPE) { return(PRESET.SEWERPIPE()); } if (p == Reverb_Props_Presets.UNDERWATER) { return(PRESET.UNDERWATER()); } else { return(PRESET.OFF()); } }
/// <summary> /// Gets an FMOD reverb preset from the FMOD Extension's preset enum /// </summary> /// <returns>The reverb to FMODR everb.</returns> /// <param name="preset">Preset.</param> public static REVERB_PROPERTIES ExtensionReverbToFMODReverb(ReverbPreset preset) { REVERB_PROPERTIES properties = new REVERB_PROPERTIES(); switch (preset) { case ReverbPreset.Alley: properties = PRESET.ALLEY(); break; case ReverbPreset.Arena: properties = PRESET.ARENA(); break; case ReverbPreset.Auditorium: properties = PRESET.AUDITORIUM(); break; case ReverbPreset.Bathroom: properties = PRESET.BATHROOM(); break; case ReverbPreset.Cave: properties = PRESET.CAVE(); break; case ReverbPreset.CerpettedHallway: properties = PRESET.CARPETTEDHALLWAY(); break; case ReverbPreset.City: properties = PRESET.CITY(); break; case ReverbPreset.ConcertHall: properties = PRESET.CONCERTHALL(); break; case ReverbPreset.Forest: properties = PRESET.FOREST(); break; case ReverbPreset.Generic: properties = PRESET.GENERIC(); break; case ReverbPreset.Hallway: properties = PRESET.HALLWAY(); break; case ReverbPreset.Hangar: properties = PRESET.HANGAR(); break; case ReverbPreset.LivingRoom: properties = PRESET.LIVINGROOM(); break; case ReverbPreset.Mountains: properties = PRESET.MOUNTAINS(); break; case ReverbPreset.Off: properties = PRESET.OFF(); break; case ReverbPreset.PaddedCell: properties = PRESET.PADDEDCELL(); break; case ReverbPreset.ParkingLot: properties = PRESET.PARKINGLOT(); break; case ReverbPreset.Plain: properties = PRESET.PLAIN(); break; case ReverbPreset.Quarry: properties = PRESET.QUARRY(); break; case ReverbPreset.Room: properties = PRESET.ROOM(); break; case ReverbPreset.SewerPipe: properties = PRESET.SEWERPIPE(); break; case ReverbPreset.StoneCorridor: properties = PRESET.STONECORRIDOR(); break; case ReverbPreset.StoneRoom: properties = PRESET.STONEROOM(); break; case ReverbPreset.Underwater: properties = PRESET.UNDERWATER(); break; } return(properties); }