mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-20 03:27:56 +00:00
Use sequential file naming for audio recording.
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user