mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-01-13 00:09:43 -05:00
Use sequential file naming for audio recording.
This commit is contained in:
parent
1c544a663b
commit
9d635b3fcf
@ -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…
Reference in New Issue
Block a user