Made saving captured audio optional. While it probably will never take a long time to save the buffer, show the capture saving is active in the info label

This commit is contained in:
xenakios
2018-12-19 15:16:30 +02:00
parent 6a9f9cb1e9
commit e6a614c5f5
4 changed files with 21 additions and 4 deletions

View File

@ -205,6 +205,7 @@ public:
String offlineRender(File outputfile);
std::atomic<int> m_offline_render_state{ -1 };
std::atomic<bool> m_offline_render_cancel_requested{ false };
std::atomic<int> m_capture_save_state{ 0 };
bool m_state_dirty = false;
std::unique_ptr<AudioThumbnail> m_thumb;
bool m_show_technical_info = false;
@ -225,6 +226,7 @@ public:
float opt) override;
int m_cur_tab_index = 0;
bool m_is_recording = false;
bool m_save_captured_audio = true;
private:
bool m_prebuffering_inited = false;
AudioBuffer<float> m_recbuffer;