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;
|
||||
|
@ -44,6 +44,13 @@ void StretchAudioSource::releaseResources()
|
||||
|
||||
}
|
||||
|
||||
AudioBuffer<float>* StretchAudioSource::getSourceAudioBuffer()
|
||||
{
|
||||
if (m_inputfile==nullptr)
|
||||
return nullptr;
|
||||
return m_inputfile->getAudioBuffer();
|
||||
}
|
||||
|
||||
bool StretchAudioSource::isResampling()
|
||||
{
|
||||
if (m_inputfile==nullptr || m_inputfile->info.samplerate==0)
|
||||
|
@ -51,6 +51,8 @@ public:
|
||||
String setAudioFile(File file);
|
||||
File getAudioFile();
|
||||
|
||||
AudioBuffer<float>* getSourceAudioBuffer();
|
||||
|
||||
void setNumOutChannels(int chans);
|
||||
int getNumOutChannels() { return m_num_outchans; }
|
||||
double getInfilePositionPercent();
|
||||
|
Reference in New Issue
Block a user