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

Play startup sound with correct startup volume #1113

Merged
merged 1 commit into from
Oct 23, 2020

Conversation

Toqqi
Copy link
Contributor

@Toqqi Toqqi commented Oct 23, 2020

Modified startup-scripts.sh to execute mpg123 with the configured startup volume from global.conf.
The configured volume from global.conf was ignored when playing the startup sound (always played at 100%, which can be extremely loud for kids).
Now the configured volume is converted into the correct volume value for mpg123 (100% volume converts into 32768).

Modified startup-scripts.sh to execute mpg123 with the configured startup volume from global.conf.
The configured volume from global.conf was ignored when playing the startup sound (always played at 100%, which can be extremely loud for kids).
Now the configured volume is converted into the correct volume value for mpg123 (100% volume converts into 32768).
Copy link
Collaborator

@s-martin s-martin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.
I can't test it right now, but I guess you tested it?

@Toqqi
Copy link
Contributor Author

Toqqi commented Oct 23, 2020

Thanks! Yes, I tested it with a range of startup volumes and it works fine.

@s-martin s-martin added this to the 2.2 milestone Oct 23, 2020
@s-martin s-martin merged commit 1f638fe into MiczFlor:develop Oct 23, 2020
@BerniPi
Copy link
Collaborator

BerniPi commented Oct 24, 2020

Hi,
if i remember correctly, the default value of AUDIOVOLSTARTUP is set to 0 (=resetting the volume on startup is disabled).
This would result in not playing the startup sound in default state?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants