Plugin initialization bug existed also on Windows, fixed for now...Make the GUI poll for some state changes from the AudioProcessor, instead of the processor calling the GUI. When using memory buffer in input source, copy all channels to xfade buffer. Some other tweaks.

This commit is contained in:
xenakios
2017-11-16 16:58:04 +02:00
parent 84e564b393
commit 43be82edc8
6 changed files with 30 additions and 14 deletions

View File

@@ -64,6 +64,7 @@ public:
double getRecordingPositionPercent();
String setAudioFile(File f);
File getAudioFile() { return m_current_file; }
Range<double> getTimeSelection();
std::unique_ptr<AudioFormatManager> m_afm;
std::unique_ptr<Control> m_control;
private:
@@ -75,7 +76,7 @@ private:
bool m_is_recording = false;
int m_rec_pos = 0;
void finishRecording(int lenrecorded);
bool m_using_memory_buffer = false;
bool m_using_memory_buffer = true;
int m_cur_num_out_chans = 2;
std::mutex m_mutex;
File m_current_file;