Rename AudioThread -> CaptureThread.

...since it's doing baseband capturing too, and doesn't really know what kind of data it's moving.
This commit is contained in:
Jared Boone 2016-04-22 12:15:51 -07:00
parent b8196ee2be
commit a6538bc48b
8 changed files with 20 additions and 20 deletions

View file

@ -281,7 +281,7 @@ void AnalogAudioView::on_headphone_volume_changed(int32_t v) {
void AnalogAudioView::update_modulation(const ReceiverModel::Mode modulation) {
audio::output::mute();
audio_thread.reset();
capture_thread.reset();
const auto is_wideband_spectrum_mode = (modulation == ReceiverModel::Mode::SpectrumAnalysis);
receiver_model.set_baseband_configuration({
@ -295,7 +295,7 @@ void AnalogAudioView::update_modulation(const ReceiverModel::Mode modulation) {
if( !is_wideband_spectrum_mode ) {
const auto filename = next_filename_matching_pattern("AUD_????.S16");
if( !filename.empty() ) {
audio_thread = std::make_unique<AudioThread>(filename);
capture_thread = std::make_unique<CaptureThread>(filename);
}
audio::output::unmute();
}