Use shared thumbnailcache for all plugin instances. Kind of a tricky thing with std::shared_ptr going on here using the deprecated unique method...But, oh well...

This commit is contained in:
xenakios
2017-11-23 19:12:29 +02:00
parent 9207325698
commit a109d71f09
3 changed files with 23 additions and 5 deletions

View File

@ -175,7 +175,7 @@ public:
Value ShowFileCacheRange;
void setRecordingPosition(double pos) { m_rec_pos = pos; }
private:
AudioThumbnailCache m_thumbcache;
std::shared_ptr<AudioThumbnailCache> m_thumbcache;
std::unique_ptr<AudioThumbnail> m_thumb;
Range<double> m_view_range{ 0.0,1.0 };
@ -221,3 +221,5 @@ private:
void chooseFile();
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (PaulstretchpluginAudioProcessorEditor)
};
void cleanUpGUI();