mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-10-01 01:26:06 -04:00
Use sequential file naming for audio recording.
This commit is contained in:
parent
1c544a663b
commit
9d635b3fcf
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user