mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-12-24 14:59:24 -05:00
ReceiverModel: Method renaming.
update_modulation_configuration() -> update_modulation().
This commit is contained in:
parent
82f6e7c306
commit
44a1b7d9d7
@ -147,7 +147,7 @@ void ReceiverModel::enable() {
|
||||
update_vga();
|
||||
update_baseband_bandwidth();
|
||||
update_baseband_configuration();
|
||||
update_modulation_configuration();
|
||||
update_modulation();
|
||||
update_headphone_volume();
|
||||
}
|
||||
|
||||
@ -200,21 +200,21 @@ void ReceiverModel::set_baseband_configuration(const BasebandConfiguration confi
|
||||
void ReceiverModel::set_am_configuration(const size_t n) {
|
||||
if( n < am_configs.size() ) {
|
||||
am_config_index = n;
|
||||
update_modulation_configuration();
|
||||
update_modulation();
|
||||
}
|
||||
}
|
||||
|
||||
void ReceiverModel::set_nbfm_configuration(const size_t n) {
|
||||
if( n < nbfm_configs.size() ) {
|
||||
nbfm_config_index = n;
|
||||
update_modulation_configuration();
|
||||
update_modulation();
|
||||
}
|
||||
}
|
||||
|
||||
void ReceiverModel::set_wfm_configuration(const size_t n) {
|
||||
if( n < wfm_configs.size() ) {
|
||||
wfm_config_index = n;
|
||||
update_modulation_configuration();
|
||||
update_modulation();
|
||||
}
|
||||
}
|
||||
|
||||
@ -236,7 +236,7 @@ void ReceiverModel::update_headphone_volume() {
|
||||
audio::headphone::set_volume(headphone_volume_);
|
||||
}
|
||||
|
||||
void ReceiverModel::update_modulation_configuration() {
|
||||
void ReceiverModel::update_modulation() {
|
||||
switch(static_cast<Mode>(modulation())) {
|
||||
default:
|
||||
case Mode::AMAudio:
|
||||
|
@ -134,7 +134,7 @@ private:
|
||||
void update_baseband_configuration();
|
||||
void update_headphone_volume();
|
||||
|
||||
void update_modulation_configuration();
|
||||
void update_modulation();
|
||||
void update_am_configuration();
|
||||
void update_nbfm_configuration();
|
||||
void update_wfm_configuration();
|
||||
|
Loading…
Reference in New Issue
Block a user