Init the thumbnailcache thread in the subclass
This commit is contained in:
parent
db7a15d161
commit
eb1c840fec
@ -119,8 +119,12 @@ private:
|
|||||||
class MyThumbCache : public AudioThumbnailCache
|
class MyThumbCache : public AudioThumbnailCache
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
MyThumbCache() : AudioThumbnailCache(200) { /*Logger::writeToLog("Constructed AudioThumbNailCache");*/ }
|
MyThumbCache() : AudioThumbnailCache(200)
|
||||||
~MyThumbCache() { /*Logger::writeToLog("Destructed AudioThumbNailCache");*/ }
|
{
|
||||||
|
// The default priority of 2 is a bit too low in some cases, it seems...
|
||||||
|
getTimeSliceThread().setPriority(3);
|
||||||
|
}
|
||||||
|
~MyThumbCache() {}
|
||||||
};
|
};
|
||||||
|
|
||||||
class WaveformComponent : public Component, public ChangeListener, public Timer
|
class WaveformComponent : public Component, public ChangeListener, public Timer
|
||||||
|
@ -77,8 +77,6 @@ PaulstretchpluginAudioProcessor::PaulstretchpluginAudioProcessor()
|
|||||||
if (m_afm->getNumKnownFormats()==0)
|
if (m_afm->getNumKnownFormats()==0)
|
||||||
m_afm->registerBasicFormats();
|
m_afm->registerBasicFormats();
|
||||||
m_thumb = std::make_unique<AudioThumbnail>(512, *m_afm, *m_thumbcache);
|
m_thumb = std::make_unique<AudioThumbnail>(512, *m_afm, *m_thumbcache);
|
||||||
// The default priority of 2 is a bit too low in some cases, it seems...
|
|
||||||
m_thumbcache->getTimeSliceThread().setPriority(3);
|
|
||||||
|
|
||||||
m_sm_enab_pars[0] = new AudioParameterBool("enab_specmodule0", "Enable harmonics", false);
|
m_sm_enab_pars[0] = new AudioParameterBool("enab_specmodule0", "Enable harmonics", false);
|
||||||
m_sm_enab_pars[1] = new AudioParameterBool("enab_specmodule1", "Enable tonal vs noise", false);
|
m_sm_enab_pars[1] = new AudioParameterBool("enab_specmodule1", "Enable tonal vs noise", false);
|
||||||
|
Loading…
Reference in New Issue
Block a user