Use plugin settings file directory for captures. Use Juce ThreadPool instead of detached std::thread for the capture saving task.

This commit is contained in:
xenakios
2018-11-08 22:48:06 +02:00
parent 0d230ac974
commit b5a106f0b0
2 changed files with 10 additions and 5 deletions

View File

@ -89,6 +89,12 @@ const int cpi_looping_enabled = 60;
const int cpi_rewind = 61;
const int cpi_dryplayrate = 62;
class MyThreadPool : public ThreadPool
{
public:
MyThreadPool() : ThreadPool(2) {}
};
class MyPropertiesFile
{
public:
@ -263,7 +269,7 @@ private:
bool m_lastrewind = false;
AudioFilePreviewComponent* m_previewcomponent = nullptr;
void saveCaptureBuffer();
SharedResourcePointer<MyThreadPool> m_threadpool;
//==============================================================================
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (PaulstretchpluginAudioProcessor)
};