Skip to content

Stop playback on stop command#261

Merged
jpochyla merged 1 commit intojpochyla:masterfrom
forslund:pause-on-stop
Mar 12, 2022
Merged

Stop playback on stop command#261
jpochyla merged 1 commit intojpochyla:masterfrom
forslund:pause-on-stop

Conversation

@forslund
Copy link
Copy Markdown
Contributor

@forslund forslund commented Jan 16, 2022

Currently the audio playback continues when the stop command is received in the player. To me this was quite counter-intuitive, and I think the playback should stop directly.

This adds a call to self.audio_output_sink.stop() when the stop-command is received.

This can easily be tested using the cli-client where "s" will not do anything.

@forslund
Copy link
Copy Markdown
Contributor Author

forslund commented Jan 17, 2022

Read the code some more...perhaps it's better to run a self.audio_output_sink.stop() instead...

Edit: Updated the PR, for reference my first attempt was to call the pause method when stop was received in addition to the stop code.

@jpochyla
Copy link
Copy Markdown
Owner

Thanks!

@jpochyla jpochyla merged commit 338b602 into jpochyla:master Mar 12, 2022
@forslund forslund deleted the pause-on-stop branch March 13, 2022 16:46
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.

2 participants