mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-07-09 16:19:53 -04:00
Use sequential file naming for audio recording.
This commit is contained in:
parent
1c544a663b
commit
9d635b3fcf
1 changed files with 5 additions and 1 deletions
|
@ -26,6 +26,7 @@
|
||||||
using namespace portapack;
|
using namespace portapack;
|
||||||
|
|
||||||
#include "audio.hpp"
|
#include "audio.hpp"
|
||||||
|
#include "file.hpp"
|
||||||
|
|
||||||
#include "utility.hpp"
|
#include "utility.hpp"
|
||||||
|
|
||||||
|
@ -294,7 +295,10 @@ void AnalogAudioView::update_modulation(const ReceiverModel::Mode modulation) {
|
||||||
receiver_model.enable();
|
receiver_model.enable();
|
||||||
|
|
||||||
if( !is_wideband_spectrum_mode ) {
|
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();
|
audio::output::unmute();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue