Skip to content

Commit

Permalink
Merge pull request #471 from missionpinball/dev
Browse files Browse the repository at this point in the history
Bugfix: Sound player delays dropping subsequent sounds
  • Loading branch information
avanwinkle authored Aug 9, 2024
2 parents dec1808 + e35a644 commit 8ab47a3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Run cibuildwheel
uses: pypa/cibuildwheel@v2.16.1 # Oct 2, 2023
uses: pypa/cibuildwheel@v2.19.2 # Aug 9 2024
env:
CIBW_BEFORE_ALL_LINUX: > # This is done here and not as its own step as this runs inside the cibw containered environment
yum install -y SDL2.x86_64 SDL2-devel.x86_64 SDL2_image.x86_64 SDL2_image-devel.x86_64
Expand Down
2 changes: 1 addition & 1 deletion mpfmc/_version.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import os

__version__ = '0.57.0'
__version__ = '0.57.1'
__short_version__ = '0.57'
__bcp_version__ = '1.1'
__config_version__ = '6'
Expand Down
6 changes: 3 additions & 3 deletions mpfmc/config_players/sound_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def play(self, settings, context, calling_context, priority=0, **kwargs): # noq

for sound_name, s in settings.items():
if self.check_delayed_play(sound_name, s, context, calling_context, priority, **kwargs):
return
continue

# adjust priority
try:
Expand All @@ -108,7 +108,7 @@ def play(self, settings, context, calling_context, priority=0, **kwargs): # noq
except KeyError:
self.machine.log.error("SoundPlayer: The specified sound "
"does not exist ('{}').".format(sound_name))
return
continue

s.update(kwargs)

Expand All @@ -122,7 +122,7 @@ def play(self, settings, context, calling_context, priority=0, **kwargs): # noq
"does not exist. Unable to perform '{}' action "
"on sound '{}'."
.format(s['track'], action, sound_name))
return
continue

# a block will block any other lower priority sound from being triggered by the same event
# the calling_context contains the name of the triggering event
Expand Down
2 changes: 1 addition & 1 deletion mpfmc/mcconfig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ assets:
load: mode_start
images:
default:
load: preload
load: on_demand
preload:
load: preload
on_demand:
Expand Down

0 comments on commit 8ab47a3

Please sign in to comment.