Classes | Public Member Functions | List of all members
AudioDisplayComponent Class Referenceabstract

An AudioDisplayComponent displays the content of audio data and has some areas that can be dragged and send a change message on Mouse up. More...

Inheritance diagram for AudioDisplayComponent:
AudioSampleBufferComponentBase SamplerSoundWaveform HiseAudioSampleBufferComponent

Classes

class  Listener
 Acts as listener and gets a callback whenever a area was changed. More...
 
class  SampleArea
 A rectangle that represents a range of samples. More...
 

Public Member Functions

void addAreaListener (Listener *l)
 Adds an AreaListener that will be informed whenever a Area was dragged. More...
 
void drawPlaybackBar (Graphics &g)
 draws a vertical ruler to display the current playing position. More...
 
void setCurrentArea (SampleArea *area)
 Sets the current Area . More...
 
void setPlaybackPosition (double normalizedPlaybackPosition)
 Sets the playback position for (0 ... More...
 
virtual void updateRanges (SampleArea *areaToSkip=nullptr)=0
 Overwrite this method and update the ranges of all SampleAreas of the AudioDisplayComponent. More...
 
virtual ~AudioDisplayComponent ()
 Removes all listeners. More...
 

Detailed Description

An AudioDisplayComponent displays the content of audio data and has some areas that can be dragged and send a change message on Mouse up.

You can create subclasses of this component and populate it with some SampleArea objects (you can nest them if desired)

Constructor & Destructor Documentation

virtual ~AudioDisplayComponent ( )
inlinevirtual

Removes all listeners.

Member Function Documentation

void addAreaListener ( Listener l)
inline

Adds an AreaListener that will be informed whenever a Area was dragged.

void drawPlaybackBar ( Graphics &  g)

draws a vertical ruler to display the current playing position.

void setCurrentArea ( SampleArea area)
inline

Sets the current Area .

void setPlaybackPosition ( double  normalizedPlaybackPosition)
inline

Sets the playback position for (0 ...

PlayArea::numSamples)

If you need this functionality, use a timer callback to call this periodically.

virtual void updateRanges ( SampleArea areaToSkip = nullptr)
pure virtual

Overwrite this method and update the ranges of all SampleAreas of the AudioDisplayComponent.

Remember to call refreshSampleAreaBounds() at the end of your method.<w

Implemented in SamplerSoundWaveform.

©2017 HISE. This documentation is autogenerated from the HISE source code using Doxygen.