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

399-the-main-menu-music-track-can-be-heard-after-the-client-closes #440

Conversation

Rans4ckeR
Copy link
Contributor

Fixes #399
Also fixes the 2nd stage updater unable to update the music file on linux as it complains about the file still being in use even after the client has exited.

@github-actions
Copy link

Nightly build for this pull request:

@Rans4ckeR Rans4ckeR merged commit 425d988 into CnCNet:develop Feb 13, 2023
@Rampastring
Copy link
Member

Rampastring commented Feb 13, 2023

There should be a MediaPlayer.Stop() call to stop music playback before the track is disposed. I'd expect just disposing the song while it's playing might lead into an exception.

EDIT: Oh nvm, I can see it's called in FadeMusicExit. Wonder why that doesn't work...

When updating it makes sense because the updater just calls ExitClient directly. Could add the MediaPlayer.Stop call to the ExitClient method before disposing the track.

@Rans4ckeR Rans4ckeR deleted the 399-the-main-menu-music-track-can-be-heard-after-the-client-closes branch November 16, 2023 20:01
SadPencil pushed a commit to SadPencil/xna-cncnet-client that referenced this pull request Oct 4, 2024
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.

The Main Menu music track can be heard after the client closes.
2 participants