JUCE
Public Member Functions | List of all members
AudioThumbnailBase Class Referenceabstract

Provides a base for classes that can store and draw scaled views of an audio waveform. More...

Inheritance diagram for AudioThumbnailBase:
() const noexcept=0 () const noexcept=0

Public Member Functions

 AudioThumbnailBase ()
 
virtual ~AudioThumbnailBase ()
 
virtual void clear ()=0
 Clears and resets the thumbnail. More...
 
virtual bool setSource (InputSource *newSource)=0
 Specifies the file or stream that contains the audio file. More...
 
virtual void setReader (AudioFormatReader *newReader, int64 hashCode)=0
 Gives the thumbnail an AudioFormatReader to use directly. More...
 
virtual bool loadFrom (InputStream &input)=0
 Reloads the low res thumbnail data from an input stream. More...
 
virtual void saveTo (OutputStream &output) const =0
 Saves the low res thumbnail data to an output stream. More...
 
virtual int getNumChannels () const noexcept=0
 Returns the number of channels in the file. More...
 
virtual double getTotalLength () const noexcept=0
 Returns the length of the audio file, in seconds. More...
 
virtual void drawChannel (Graphics &g, const Rectangle< int > &area, double startTimeSeconds, double endTimeSeconds, int channelNum, float verticalZoomFactor)=0
 Draws the waveform for a channel. More...
 
virtual void drawChannels (Graphics &g, const Rectangle< int > &area, double startTimeSeconds, double endTimeSeconds, float verticalZoomFactor)=0
 Draws the waveforms for all channels in the thumbnail. More...
 
virtual bool isFullyLoaded () const noexcept=0