mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-06-20 12:54:33 -04:00
Add AudioVolumeField -- cleanup (#1107)
* WIP Adding AudioVolumeField * Fix build break * Add Bernd to about --------- Co-authored-by: kallanreed <kallanreed@outlook.com>
This commit is contained in:
parent
7e8a139732
commit
28319652c1
22 changed files with 91 additions and 186 deletions
|
@ -381,4 +381,21 @@ void VGAGainField::on_focus() {
|
|||
}
|
||||
}
|
||||
|
||||
/* AudioVolumeField *******************************************************/
|
||||
|
||||
AudioVolumeField::AudioVolumeField(
|
||||
Point parent_pos)
|
||||
: NumberField{
|
||||
parent_pos,
|
||||
/* length */ 2,
|
||||
/* range */ {0, 99},
|
||||
/* step */ 1,
|
||||
/* fill char */ ' '} {
|
||||
set_value(receiver_model.normalized_headphone_volume());
|
||||
|
||||
on_change = [](int32_t v) {
|
||||
receiver_model.set_normalized_headphone_volume(v);
|
||||
};
|
||||
}
|
||||
|
||||
} /* namespace ui */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue