Rename AudioModel, AudioView to Analog*.

This commit is contained in:
Jared Boone 2015-12-01 20:55:36 -08:00
parent c1d59b644d
commit 74d6518ea1

View File

@ -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: