mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-05-12 11:42:13 -04:00
ReceiverModel: Method renaming.
update_modulation_configuration() -> update_modulation().
This commit is contained in:
parent
82f6e7c306
commit
44a1b7d9d7
2 changed files with 6 additions and 6 deletions
|
@ -147,7 +147,7 @@ void ReceiverModel::enable() {
|
||||||
update_vga();
|
update_vga();
|
||||||
update_baseband_bandwidth();
|
update_baseband_bandwidth();
|
||||||
update_baseband_configuration();
|
update_baseband_configuration();
|
||||||
update_modulation_configuration();
|
update_modulation();
|
||||||
update_headphone_volume();
|
update_headphone_volume();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -200,21 +200,21 @@ void ReceiverModel::set_baseband_configuration(const BasebandConfiguration confi
|
||||||
void ReceiverModel::set_am_configuration(const size_t n) {
|
void ReceiverModel::set_am_configuration(const size_t n) {
|
||||||
if( n < am_configs.size() ) {
|
if( n < am_configs.size() ) {
|
||||||
am_config_index = n;
|
am_config_index = n;
|
||||||
update_modulation_configuration();
|
update_modulation();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ReceiverModel::set_nbfm_configuration(const size_t n) {
|
void ReceiverModel::set_nbfm_configuration(const size_t n) {
|
||||||
if( n < nbfm_configs.size() ) {
|
if( n < nbfm_configs.size() ) {
|
||||||
nbfm_config_index = n;
|
nbfm_config_index = n;
|
||||||
update_modulation_configuration();
|
update_modulation();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ReceiverModel::set_wfm_configuration(const size_t n) {
|
void ReceiverModel::set_wfm_configuration(const size_t n) {
|
||||||
if( n < wfm_configs.size() ) {
|
if( n < wfm_configs.size() ) {
|
||||||
wfm_config_index = n;
|
wfm_config_index = n;
|
||||||
update_modulation_configuration();
|
update_modulation();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -236,7 +236,7 @@ void ReceiverModel::update_headphone_volume() {
|
||||||
audio::headphone::set_volume(headphone_volume_);
|
audio::headphone::set_volume(headphone_volume_);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ReceiverModel::update_modulation_configuration() {
|
void ReceiverModel::update_modulation() {
|
||||||
switch(static_cast<Mode>(modulation())) {
|
switch(static_cast<Mode>(modulation())) {
|
||||||
default:
|
default:
|
||||||
case Mode::AMAudio:
|
case Mode::AMAudio:
|
||||||
|
|
|
@ -134,7 +134,7 @@ private:
|
||||||
void update_baseband_configuration();
|
void update_baseband_configuration();
|
||||||
void update_headphone_volume();
|
void update_headphone_volume();
|
||||||
|
|
||||||
void update_modulation_configuration();
|
void update_modulation();
|
||||||
void update_am_configuration();
|
void update_am_configuration();
|
||||||
void update_nbfm_configuration();
|
void update_nbfm_configuration();
|
||||||
void update_wfm_configuration();
|
void update_wfm_configuration();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue