Change multiprocessing start method for player on MacOS
This commit is contained in:
parent
1a4b61293c
commit
bf8e8b908e
1 changed files with 7 additions and 2 deletions
|
@ -14,9 +14,12 @@ import os
|
||||||
import sys
|
import sys
|
||||||
os.environ['PYGAME_HIDE_SUPPORT_PROMPT'] = "hide"
|
os.environ['PYGAME_HIDE_SUPPORT_PROMPT'] = "hide"
|
||||||
from pygame import mixer
|
from pygame import mixer
|
||||||
from state_manager import StateManager
|
|
||||||
from mutagen.mp3 import MP3
|
from mutagen.mp3 import MP3
|
||||||
|
|
||||||
|
from state_manager import StateManager
|
||||||
|
from helpers.os_environment import isMacOS
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class Player():
|
class Player():
|
||||||
state = None
|
state = None
|
||||||
|
@ -356,7 +359,9 @@ def showOutput(in_q, out_q):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
#multiprocessing.set_start_method("spawn", True)
|
if isMacOS:
|
||||||
|
multiprocessing.set_start_method("spawn", True)
|
||||||
|
|
||||||
in_q = multiprocessing.Queue()
|
in_q = multiprocessing.Queue()
|
||||||
out_q = multiprocessing.Queue()
|
out_q = multiprocessing.Queue()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue