Skip to content

WIP: --sfx-volume option - #82

Open
lanodan wants to merge 2 commits into
fmang:masterfrom
lanodan:feature/23-effect-volume
Open

WIP: --sfx-volume option#82
lanodan wants to merge 2 commits into
fmang:masterfrom
lanodan:feature/23-effect-volume

Conversation

@lanodan

@lanodan lanodan commented Sep 22, 2018

Copy link
Copy Markdown
Contributor

Closes: #23

@lanodan
lanodan force-pushed the feature/23-effect-volume branch from 247d107 to 24b105f Compare September 22, 2018 08:38
Comment thread include/game/base.h
struct oshu_sound_library library {};
struct oshu_clock clock {};
int autoplay {};
int sfx_volume {};

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Use a [0, 1] float here, and set its default value to 1.

Comment thread share/man/oshu.1.in
.TP
\fB\-\-sfx\-volume\fR
Sets the volume of the effects (i.e hitsounds), minimum(~mute) is 0, maximum
is 100

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

It's a bit more work, but I think --sfx-volume 50% is much clearer with the explicit %.

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