Clean up. Removed the MultiStretchAudioSource, hopefully it doesn't need to be restored later...
This commit is contained in:
@ -154,76 +154,3 @@ private:
|
||||
} m_xfadetask;
|
||||
int m_pause_fade_counter = 0;
|
||||
};
|
||||
|
||||
class MultiStretchAudioSource final : public PositionableAudioSource
|
||||
{
|
||||
public:
|
||||
MultiStretchAudioSource() {}
|
||||
MultiStretchAudioSource(int initialnumoutchans, AudioFormatManager* afm);
|
||||
~MultiStretchAudioSource();
|
||||
|
||||
void prepareToPlay(int samplesPerBlockExpected, double sampleRate) override;
|
||||
|
||||
void releaseResources() override;
|
||||
|
||||
void getNextAudioBlock(const AudioSourceChannelInfo & bufferToFill) override;
|
||||
|
||||
void setNextReadPosition(int64 newPosition) override;
|
||||
|
||||
int64 getNextReadPosition() const override;
|
||||
|
||||
int64 getTotalLength() const override;
|
||||
|
||||
bool isLooping() const override;
|
||||
|
||||
String setAudioFile(File file);
|
||||
File getAudioFile();
|
||||
|
||||
void setNumOutChannels(int chans);
|
||||
double getInfilePositionPercent();
|
||||
void setRate(double rate);
|
||||
double getRate();
|
||||
void setProcessParameters(ProcessParameters* pars);
|
||||
void setFFTSize(int size);
|
||||
int getFFTSize();
|
||||
|
||||
void seekPercent(double pos);
|
||||
double getInfilePositionSeconds();
|
||||
double getInfileLengthSeconds();
|
||||
|
||||
double getOutputDurationSecondsForRange(Range<double> range, int fftsize);
|
||||
|
||||
void setOnsetDetection(double x);
|
||||
void setPlayRange(Range<double> playrange, bool isloop);
|
||||
bool isLoopingEnabled();
|
||||
void setLoopingEnabled(bool b);
|
||||
bool hasReachedEnd();
|
||||
bool isResampling();
|
||||
std::vector<SpectrumProcess> getSpectrumProcessOrder();
|
||||
void setSpectrumProcessOrder(std::vector<SpectrumProcess> order);
|
||||
void setFFTWindowingType(int windowtype);
|
||||
std::pair<Range<double>, Range<double>> getFileCachedRangesNormalized();
|
||||
void setFreezing(bool b) { m_freezing = b; }
|
||||
bool isFreezing() { return m_freezing; }
|
||||
|
||||
Value val_MainVolume;
|
||||
Value val_XFadeLen;
|
||||
//ValueTree getStateTree();
|
||||
//void setStateTree(ValueTree state);
|
||||
void setAudioBufferAsInputSource(AudioBuffer<float>* buf, int sr, int len);
|
||||
private:
|
||||
std::vector<std::shared_ptr<StretchAudioSource>> m_stretchsources;
|
||||
bool m_is_in_switch{ false };
|
||||
bool m_is_playing = false;
|
||||
bool m_freezing = false;
|
||||
LinearSmoothedValue<double> m_xfadegain;
|
||||
StretchAudioSource* getActiveStretchSource() const;
|
||||
void switchActiveSource();
|
||||
int m_blocksize = 0;
|
||||
double m_samplerate = 44100.0;
|
||||
int m_numoutchans = 2;
|
||||
AudioBuffer<float> m_processbuffers[2];
|
||||
std::mutex m_mutex;
|
||||
double m_switchxfadelen = 1.0;
|
||||
AudioFormatManager* m_afm = nullptr;
|
||||
};
|
||||
|
Reference in New Issue
Block a user