Check for filesystem errors in RecordView.

This commit is contained in:
Jared Boone
2016-05-12 21:59:46 -07:00
parent 92d75fa46d
commit 9dc12fca3c
2 changed files with 27 additions and 6 deletions

View File

@@ -37,6 +37,8 @@ namespace ui {
class RecordView : public View {
public:
std::function<void(std::string)> on_error;
enum FileType {
RawS16 = 2,
WAV = 3,
@@ -71,6 +73,8 @@ private:
void on_tick_second();
void report_error(const std::string& message);
const std::string filename_stem_pattern;
const FileType file_type;
const size_t write_size;