mirror of
https://github.com/librespot-org/librespot.git
synced 2025-10-06 03:50:06 +02:00
Add optional linear volume contol
This commit is contained in:
parent
8f8eb8cc23
commit
b3966b0e08
3 changed files with 27 additions and 5 deletions
6
src/main.rs
Normal file → Executable file
6
src/main.rs
Normal file → Executable file
|
@ -166,6 +166,11 @@ fn setup(args: &[String]) -> Setup {
|
|||
"normalisation-pregain",
|
||||
"Pregain (dB) applied by volume normalisation",
|
||||
"PREGAIN",
|
||||
)
|
||||
.optflag(
|
||||
"",
|
||||
"linear-volume",
|
||||
"increase volume linear instead of logarithmic.",
|
||||
);
|
||||
|
||||
let matches = match opts.parse(&args[1..]) {
|
||||
|
@ -282,6 +287,7 @@ fn setup(args: &[String]) -> Setup {
|
|||
name: name,
|
||||
device_type: device_type,
|
||||
volume: initial_volume,
|
||||
linear_volume: matches.opt_present("linear-volume")
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue