Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bus player for MPF 0.80 (replaces Track player from MPF 0.57) #1806

Merged
merged 4 commits into from
Jul 9, 2024

Conversation

avanwinkle
Copy link
Collaborator

This PR introduces support for bus_player commands from MPF, akin to the track_player configs of MPF 0.57. The GMC companion PR is at missionpinball/mpf-gmc#8

Three actions are supported: pause, unpause, and stop.


bus_player:
  delay_pause:
    music:
      action: pause
      fade: 2s
  delay_resume:
    music:
      action: unpause
      fade: 2s
  delay_stop:
    music:
      action: stop
      fade: 1s

Note that when a bus pauses, the channel is no longer considered active and may be replaced by a new sound request. To ensure proper isolation of sound files on a bus, use a unique bus for those sounds.

@avanwinkle avanwinkle changed the base branch from dev to 0.80.x July 9, 2024 01:26
Copy link

sonarcloud bot commented Jul 9, 2024

@avanwinkle avanwinkle merged commit 1c1e1bb into 0.80.x Jul 9, 2024
29 checks passed
@avanwinkle avanwinkle deleted the bus-player branch July 9, 2024 01:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant