/// <summary> /// Initialize audio engine /// </summary> internal virtual void InitializeAudioEngine() { AudioDevice = AudioLayer.Create(audioDevice.Name == "default" ? null : audioDevice.Name); if (AudioDevice.Ptr == IntPtr.Zero) { State = AudioEngineState.Invalidated; } DefaultListener = new AudioListener(this); }