mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-10-01 01:26:06 -04:00
Use sequential file naming for baseband capture files.
This commit is contained in:
parent
9d635b3fcf
commit
f38fca168e
@ -24,6 +24,8 @@
|
||||
#include "portapack.hpp"
|
||||
using namespace portapack;
|
||||
|
||||
#include "file.hpp"
|
||||
|
||||
#include "utility.hpp"
|
||||
|
||||
namespace ui {
|
||||
@ -103,7 +105,12 @@ void CaptureAppView::on_start_stop() {
|
||||
capture_thread.reset();
|
||||
button_start_stop.set_bitmap(&bitmap_record);
|
||||
} else {
|
||||
capture_thread = std::make_unique<AudioThread>("baseband.c16");
|
||||
const auto filename = next_filename_matching_pattern("BBD_????.C16");
|
||||
if( filename.empty() ) {
|
||||
return;
|
||||
}
|
||||
|
||||
capture_thread = std::make_unique<AudioThread>(filename);
|
||||
button_start_stop.set_bitmap(&bitmap_stop);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user