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