Skip to content

Commit

Permalink
Remove lazy loading of ffmpeg library, as it causes an annoying pause.
Browse files Browse the repository at this point in the history
  • Loading branch information
pvcraven committed Sep 29, 2019
1 parent 8198d01 commit b91df55
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions arcade/sound.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,10 @@ class PlaysoundException(Exception):

def _load_sound_library():
"""
Special code for Windows so we grab the proper avbin from our directory.
Special code for Windows so we grab the proper library from our directory.
Otherwise hope the correct package is installed.
"""

# lazy loading
if not _load_sound_library._sound_library_loaded:
_load_sound_library._sound_library_loaded = True
else:
return

import pyglet_ffmpeg2
pyglet_ffmpeg2.load_ffmpeg()

Expand Down

0 comments on commit b91df55

Please sign in to comment.