How do play audio (playsound) in background of Python script?

前端 未结 6 802
慢半拍i
慢半拍i 2020-12-03 09:36

I am just writing a small python game for fun and I have a function that does the beginning narrative.

I am trying to get the audio to play in the background but unf

6条回答
  •  囚心锁ツ
    2020-12-03 10:00

    Playsound has an option for running in the background -> additional argument to be set to 0:

    playsound("xxxxx.mp3", 0)
    

提交回复
热议问题