Skip to content

Commit

Permalink
Use pyglet.options.audio directly
Browse files Browse the repository at this point in the history
  • Loading branch information
einarf committed Jan 12, 2025
1 parent 1c548bb commit 5ec096b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions arcade/sound.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,9 @@
from arcade.resources import resolve

if os.environ.get("ARCADE_SOUND_BACKENDS"):
pyglet.options["audio"] = tuple( # type: ignore
v.strip() for v in os.environ["ARCADE_SOUND_BACKENDS"].split(",")
)
pyglet.options.audio = tuple(v.strip() for v in os.environ["ARCADE_SOUND_BACKENDS"].split(","))
else:
pyglet.options["audio"] = ("openal", "xaudio2", "directsound", "pulse", "silent") # type: ignore
pyglet.options.audio = ("openal", "xaudio2", "directsound", "pulse", "silent")

import pyglet.media as media

Expand Down

0 comments on commit 5ec096b

Please sign in to comment.