update to support juce 6.1. added mute audio while processing capture option. added a mac specific priority fix. use async popup menus and browsers where needed.
This commit is contained in:
@ -157,7 +157,7 @@ void StretchAudioSource::setAudioBufferAsInputSource(AudioBuffer<float>* buf, in
|
||||
ScopedLock locker(m_cs);
|
||||
m_inputfile->setAudioBuffer(buf, sr, len);
|
||||
m_seekpos = 0.0;
|
||||
|
||||
m_audiobuffer_is_source = true;
|
||||
m_curfile = File();
|
||||
if (m_playrange.isEmpty())
|
||||
setPlayRange({ 0.0,1.0 });
|
||||
@ -512,6 +512,7 @@ String StretchAudioSource::setAudioFile(File file)
|
||||
{
|
||||
m_curfile = file;
|
||||
m_firstbuffer = true;
|
||||
m_audiobuffer_is_source = false;
|
||||
return String();
|
||||
}
|
||||
return "Could not open file";
|
||||
|
@ -99,6 +99,7 @@ public:
|
||||
void setLoopingEnabled(bool b);
|
||||
void setMaxLoops(int64_t numloops) { m_maxloops = numloops; }
|
||||
void setAudioBufferAsInputSource(AudioBuffer<float>* buf, int sr, int len);
|
||||
bool isAudioBufferInputSource() const { return m_audiobuffer_is_source; }
|
||||
void setMainVolume(double decibels);
|
||||
double getMainVolume() const { return m_main_volume; }
|
||||
//void setSpectralModulesEnabled(const std::array<AudioParameterBool*, 9>& params);
|
||||
@ -148,6 +149,7 @@ private:
|
||||
bool m_stream_end_reached = false;
|
||||
int64_t m_output_silence_counter = 0;
|
||||
File m_curfile;
|
||||
bool m_audiobuffer_is_source = false;
|
||||
int64_t m_maxloops = 0;
|
||||
std::unique_ptr<WDL_Resampler> m_resampler;
|
||||
std::vector<double> m_resampler_outbuf;
|
||||
|
Reference in New Issue
Block a user