Skip to content

Commit

Permalink
mac sounds fix 1.9.3 (#455)
Browse files Browse the repository at this point in the history
* edit katrain/gui/sound.py, edit katrain/core/constants.py

* edit katrain/gui/sound.py

Co-authored-by: Sander Land <[email protected]>
  • Loading branch information
sanderland and Sander Land authored Jul 4, 2021
1 parent fd1af43 commit dd3b8cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion katrain/core/constants.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PROGRAM_NAME = "KaTrain"
VERSION = "1.9.2"
VERSION = "1.9.3"
HOMEPAGE = "https://github.com/sanderland/katrain"
CONFIG_MIN_VERSION = "1.9.0" # keep config files from this version
ANALYSIS_FORMAT_VERSION = "1.0"
Expand Down
3 changes: 1 addition & 2 deletions katrain/gui/sound.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
cached_sounds = {}

# prefer ffpyplayer on linux, then others, avoid gst and avoid or ffpyplayer on windows
ranking = [("ffpy", 98 if platform == "win" else -2), ("sdl", -1), ("gst", 99), ("", 0)]

ranking = [("ffpy", 98 if platform in ["win",'macosx'] else -2), ("sdl", -1), ("gst", 99), ("", 0)]
try:
SoundLoader._classes.sort(key=lambda cls: [v for k, v in ranking if k in cls.__name__.lower()][0])
except Exception as e:
Expand Down

0 comments on commit dd3b8cb

Please sign in to comment.