mixer: use audible default settings

In case there is no valid configuration the component used to mute
output by default. This, however, might lead to the assumption that
audio is not working at all. Instead set the master output volume to
50% and the per application volume to 100%.

Fixes #4043.
This commit is contained in:
Josef Söntgen 2021-03-08 14:38:00 +01:00 committed by Norman Feske
parent 9093c293cb
commit ba6c4a664f

View File

@ -169,9 +169,9 @@ class Audio_out::Mixer
/*
* Default settings used as fallback for new sessions
*/
float _default_out_volume { 0.f };
float _default_volume { 0.f };
bool _default_muted { true };
float _default_out_volume { 0.5f };
float _default_volume { 1.0f };
bool _default_muted { false };
/**
* Remix all exception
@ -454,7 +454,7 @@ class Audio_out::Mixer
"muted: ", _default_muted);
}
} catch (...) { Genode::warning("could not read mixer default values"); }
} catch (...) { Genode::warning("config invalid"); }
}
/**