Skip to content

Conversation

edrd-f
Copy link
Contributor

@edrd-f edrd-f commented Aug 23, 2022

Hi! I was trying to change the "max logins" scsynth option through the scsynth_opts from audio-settings.toml and after some attempts I noticed changing this option and scsynth_opts_override had no effect.

After some investigation I discovered it's caused by a bug in daemon.rb. Both scsynth_opts and scynth_opts_override were being discarded as unify_toml_opts_hash maps options to scsynth command args through OPTS_TOML_KEY_CONVERSION, which doesn't contain such keys.

The fix involves simply passing the original TOML options hash down to merge_opts so it can correctly extract the scsynth_* opts.

Both `scsynth_opts` and `scynth_opts_override` were being
discarded as `unify_toml_opts_hash` maps options to
scsynth command args through `OPTS_TOML_KEY_CONVERSION`,
which doesn't contain such keys.
@samaaron
Copy link
Collaborator

Brilliant work, thanks so much for both figuring out the issue and for the fix.

@samaaron samaaron merged commit 807ed14 into sonic-pi-net:dev Aug 25, 2022
@edrd-f edrd-f deleted the ef/scsynth_opts_fix branch August 25, 2022 15:58
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