public static void GlobalInit() { if (SDL_Init(SDL_INIT_AUDIO) < 0) { throw new Exception("Unable to load SDL!"); } MMDevice audioDevice = MMDeviceAPI.CreateMMDeviceEnumerator().GetDefaultAudioEndpoint(DataFlow.Render, Role.Multimedia); AudioClient audioClient = audioDevice.CreateAudioCilent(); audioClient.GetSharedModeEnginePeriod(out _, out _, out MinBufferSize, out _); }