Пример #1
0
        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 _);
        }