Use sequential file naming for audio recording.

This commit is contained in:
Jared Boone 2016-04-20 10:22:50 -07:00
parent 1c544a663b
commit 9d635b3fcf

View File

@ -26,6 +26,7 @@
using namespace portapack;
#include "audio.hpp"
#include "file.hpp"
#include "utility.hpp"
@ -294,7 +295,10 @@ void AnalogAudioView::update_modulation(const ReceiverModel::Mode modulation) {
receiver_model.enable();
if( !is_wideband_spectrum_mode ) {
audio_thread = std::make_unique<AudioThread>("audio.s16");
const auto filename = next_filename_matching_pattern("AUD_????.S16");
if( !filename.empty() ) {
audio_thread = std::make_unique<AudioThread>(filename);
}
audio::output::unmute();
}
}