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

bgm123 - update with several improvements #69

Merged
merged 9 commits into from Jul 4, 2022

Conversation

s1eve-mcdichae1
Copy link

@s1eve-mcdichae1 s1eve-mcdichae1 commented Jul 4, 2022

Experimented with a stand-alone menu script, but went back to just using the gui_ function.

Added a config file to allow for user-controlled settings.

For now only have "mapped_volume" option to use a different fade profile.

You can manually edit "music_dir" in config file to use a different location but no GUI for this (yet).

"mixer_channel" and "music_player" options don't do anything (yet). Don't edit them.

Broke all player controls into external scripts to manage them easier.


One issue: if you PAUSE then DISABLE then ENABLE then PLAY, it doesn't start. Selecting PLAY a second time usually works.

Disabling without pausing first doesn't seem to cause any issues. Disabling while paused, the process does not pkill properly and remains open in a "stopped" state.

Quitting while paused may have the same issues, as it calls the same kill function to stop the music as disabling does, and repeated testing of this may be the reason my audio got corrupted last night (rebooting fixed it, though) as I suspect I ended up with multiple overlapping processes competing for the audio channel.

I am still investigating the solution to this problem.

Removed the extra menu script, it's all rolled back into the gui_ function for now.

Added a mapped_volume switch to use a different fade-in/out profile.
Rolled 'disable' and 'remove' into 'enable' and 'configure'.

Changed up which vars use "global var" functions.

Minor edits.
External init and kill scripts. Renamed fade script.

Renamed enable_ function. Added dummy enable_/disable_ functions for CLI usage.

Made assignment of recycled variables prettier.
Added "enabled" status to user config. Fixes "not enabled after uninstall/reinstall."

Expanded comments.
I guess this separation of declaration and assignment is probably not necessary, after all.
SIGKILL should patch this for now but it's a dirty fix.
@Exarkuniv Exarkuniv merged commit f4d2058 into Exarkuniv:master Jul 4, 2022
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

2 participants