Fix pulseaudio error on !linux
This commit is contained in:
parent
65944e59b3
commit
0f25345a6a
1 changed files with 2 additions and 1 deletions
|
@ -4,7 +4,8 @@ from helpers.os_environment import isLinux, isMacOS, isWindows
|
|||
import os
|
||||
|
||||
os.environ["PYGAME_HIDE_SUPPORT_PROMPT"] = "hide"
|
||||
os.putenv('SDL_AUDIODRIVER', 'pulseaudio')
|
||||
if isLinux():
|
||||
os.putenv('SDL_AUDIODRIVER', 'pulseaudio')
|
||||
import pygame._sdl2 as sdl2
|
||||
from pygame import mixer
|
||||
import glob
|
||||
|
|
Loading…
Reference in a new issue