Fix pulseaudio error on !linux

This commit is contained in:
Matthew Stratford 2021-11-02 23:26:26 +00:00
parent 65944e59b3
commit 0f25345a6a

View file

@ -4,7 +4,8 @@ from helpers.os_environment import isLinux, isMacOS, isWindows
import os import os
os.environ["PYGAME_HIDE_SUPPORT_PROMPT"] = "hide" os.environ["PYGAME_HIDE_SUPPORT_PROMPT"] = "hide"
os.putenv('SDL_AUDIODRIVER', 'pulseaudio') if isLinux():
os.putenv('SDL_AUDIODRIVER', 'pulseaudio')
import pygame._sdl2 as sdl2 import pygame._sdl2 as sdl2
from pygame import mixer from pygame import mixer
import glob import glob