public LowLevelSystem(int maxChannels = 1024, LowLevelInitFlags flags = LowLevelInitFlags.Normal, AdvancedInitializationSettings advancedSettings = default(AdvancedInitializationSettings), Action <IPreInitilizeLowLevelSystem> preInit = null) { //Load native dependencies Native.Load(); _listenerCollection = new ListenerCollection(this); _disposed = false; _reverbController = new ReverbPropertiesController(_system); //Create low level system and mark it for disposal management Factory.System_Create(out _system).Check(); _managedSystem = true; if (preInit != null) { preInit(this); } //Set advanced settings SetAdvancedSettings(advancedSettings); //Initialize _system.init(maxChannels, EquivalentEnum <LowLevelInitFlags, INITFLAGS> .Cast(flags), IntPtr.Zero).Check(); }
internal LowLevelSystem(FMOD.System system) { _listenerCollection = new ListenerCollection(this); _disposed = false; _system = system; _reverbController = new ReverbPropertiesController(_system); }
/// <summary> /// Initializes a new instance of the <see cref="SourceInfo"/> class. /// </summary> public SourceInfo() { _listeners = new ListenerCollection(); }