mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2024-12-13 19:54:39 +00:00
Rename AudioModel, AudioView to Analog*.
This commit is contained in:
parent
c1d59b644d
commit
74d6518ea1
@ -583,9 +583,9 @@ static ManchesterFormatted format_manchester(
|
|||||||
return { hex_data, hex_error };
|
return { hex_data, hex_error };
|
||||||
}
|
}
|
||||||
|
|
||||||
class AudioModel {
|
class AnalogAudioModel {
|
||||||
public:
|
public:
|
||||||
AudioModel(ReceiverMode mode) {
|
AnalogAudioModel(ReceiverMode mode) {
|
||||||
receiver_model.set_baseband_configuration({
|
receiver_model.set_baseband_configuration({
|
||||||
.mode = toUType(mode),
|
.mode = toUType(mode),
|
||||||
.sampling_rate = 3072000,
|
.sampling_rate = 3072000,
|
||||||
@ -595,16 +595,16 @@ public:
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
class AudioView : public spectrum::WaterfallWidget {
|
class AnalogAudioView : public spectrum::WaterfallWidget {
|
||||||
public:
|
public:
|
||||||
AudioView(
|
AnalogAudioView(
|
||||||
ReceiverMode mode
|
ReceiverMode mode
|
||||||
) : model { mode }
|
) : model { mode }
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
AudioModel model;
|
AnalogAudioModel model;
|
||||||
};
|
};
|
||||||
|
|
||||||
class AISModel {
|
class AISModel {
|
||||||
@ -872,7 +872,7 @@ void ReceiverView::on_modulation_changed(ReceiverMode mode) {
|
|||||||
case ReceiverMode::AMAudio:
|
case ReceiverMode::AMAudio:
|
||||||
case ReceiverMode::NarrowbandFMAudio:
|
case ReceiverMode::NarrowbandFMAudio:
|
||||||
case ReceiverMode::WidebandFMAudio:
|
case ReceiverMode::WidebandFMAudio:
|
||||||
widget_content = std::make_unique<AudioView>(mode);
|
widget_content = std::make_unique<AnalogAudioView>(mode);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ReceiverMode::AIS:
|
case ReceiverMode::AIS:
|
||||||
|
Loading…
Reference in New Issue
Block a user