79 int readAheadBufferSize = 0,
99 double getCurrentPosition()
const;
102 double getLengthInSeconds()
const;
130 void setGain (
float newGain)
noexcept;
142 void releaseResources()
override;
149 void setNextReadPosition (int64
newPosition)
override;
152 int64 getNextReadPosition()
const override;
155 int64 getTotalLength()
const override;
158 bool isLooping()
const override;
169 float gain = 1.0f, lastGain = 1.0f;
170 std::atomic<bool> playing {
false }, stopped {
true };
171 double sampleRate = 44100.0, sourceSampleRate = 0;
172 int blockSize = 128, readAheadBufferSize = 0;
173 bool isPrepared =
false, inputStreamEOF =
false;
175 void releaseMasterResources();
177 JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (AudioTransportSource)