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

Muted states not saved when soloed #5562

Closed
gthzrsfk opened this issue Jul 7, 2020 · 2 comments · Fixed by #5565
Closed

Muted states not saved when soloed #5562

gthzrsfk opened this issue Jul 7, 2020 · 2 comments · Fixed by #5565
Labels

Comments

@gthzrsfk
Copy link

gthzrsfk commented Jul 7, 2020

Steps to reproduce

Mute some tracks
Solo a track
Save the project
Restart LMMS
Reopen the project
Unsolo the track

Expected behavior

All tracks remember their states, or unsoloed before saving.

Actual behavior

Some tracks don't remember if they were muted.

Affected LMMS versions

1.2.2 (Linux/x86_64, Qt 5.9.7, GCC 5.4.0 20160609)

@gthzrsfk gthzrsfk added the bug label Jul 7, 2020
@IanCaio
Copy link
Contributor

IanCaio commented Jul 7, 2020

The mute state before the solo is stored during runtime in a variable called Track::m_mutedBeforeSolo. It's probably not saved on the project file so LMMS doesn't know what the mute state should be after unsoloing. What has to be decided is if we should store this variable on the project file to remember the previous mute state during a solo or make solo a runtime thing and all tracks be loaded with solo off (in this case if solo is toggled it would be turned off before saving).

Personally I tend towards the latter. Mute states are interesting in a project file, but solo states not that much. It's usually used to test things during the production process and rarely something you want to save in the project. But I'm open ears to other opinions.

@IanCaio
Copy link
Contributor

IanCaio commented Jul 7, 2020

I just submitted a PR with a fix for this bug. It's linked above and soon there should be builds available to download. Older project files can't be fixed though, because they didn't store the muted states before the solo, so those files will just set every track to unmuted when you disable the solo. But new project files should now store this information and you'll be able to recover the state after disabling the solo.

@PhysSong PhysSong linked a pull request Jul 14, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants