29class AudioThumbnailCache;
102 virtual
double getTotalLength() const noexcept = 0;
116 double startTimeSeconds,
117 double endTimeSeconds,
119 float verticalZoomFactor) = 0;
130 double startTimeSeconds,
131 double endTimeSeconds,
132 float verticalZoomFactor) = 0;
135 virtual
bool isFullyLoaded() const noexcept = 0;
138 virtual
int64 getNumSamplesFinished() const noexcept = 0;
144 virtual
float getApproximatePeak() const = 0;
151 virtual
void getApproximateMinMax (
double startTime,
double endTime,
int channelIndex,
152 float& minValue,
float& maxValue) const noexcept = 0;
155 virtual
int64 getHashCode() const = 0;
Provides a base for classes that can store and draw scaled views of an audio waveform.
virtual void clear()=0
Clears and resets the thumbnail.
virtual bool setSource(InputSource *newSource)=0
Specifies the file or stream that contains the audio file.
virtual int getNumChannels() const noexcept=0
Returns the number of channels in the file.
virtual bool loadFrom(InputStream &input)=0
Reloads the low res thumbnail data from an input stream.
virtual void saveTo(OutputStream &output) const =0
Saves the low res thumbnail data to an output stream.
virtual void setReader(AudioFormatReader *newReader, int64 hashCode)=0
Gives the thumbnail an AudioFormatReader to use directly.
Holds a list of ChangeListeners, and sends messages to them when instructed.
A graphics context, used for drawing a component or image.
The base class for streams that write data to some kind of destination.
Manages a rectangle and allows geometric operations to be performed on it.
long long int64
A platform-independent 64-bit integer type.