If capture buffer used, refresh waveform when GUI has been closed and reopened.
This commit is contained in:
@ -65,6 +65,12 @@ public:
|
||||
seek(m_activerange.getStart());
|
||||
updateXFadeCache();
|
||||
}
|
||||
virtual AudioBuffer<float>* getAudioBuffer() override
|
||||
{
|
||||
if (m_using_memory_buffer)
|
||||
return &m_readbuf;
|
||||
return nullptr;
|
||||
}
|
||||
bool openAudioFile(File file) override
|
||||
{
|
||||
m_silenceoutputted = 0;
|
||||
|
@ -79,7 +79,7 @@ public:
|
||||
{
|
||||
return m_currentsample >= info.nsamples*m_activerange.getEnd();
|
||||
}
|
||||
|
||||
virtual AudioBuffer<float>* getAudioBuffer()=0;
|
||||
protected:
|
||||
volatile int64_t m_currentsample = 0;
|
||||
int m_silenceoutputted = 0;
|
||||
|
Reference in New Issue
Block a user