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...
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... | |
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)
|
inlinevirtual |
Removes all listeners.
|
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.
|
inline |
Sets the current Area .
|
inline |
Sets the playback position for (0 ...
PlayArea::numSamples)
If you need this functionality, use a timer callback to call this periodically.
|
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.