If capture buffer used, refresh waveform when GUI has been closed and reopened.

This commit is contained in:
xenakios
2017-12-13 05:18:39 +02:00
parent f872a13257
commit e411a99f70
5 changed files with 25 additions and 2 deletions

View File

@ -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;

View File

@ -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;