A waveform component to display the content of a pooled AudioSampleBuffer. More...
Public Member Functions | |
| const String & | getCurrentlyLoadedFileName () const |
| Returns the currently loaded file name. More... | |
| double | getSampleRate () const override |
| Returns only 44100.0 (this will have no impact, but must be overriden. More... | |
| void | setAudioSampleBuffer (const AudioSampleBuffer *b, const String &fileName, NotificationType notifyListeners) |
| Call this when you want the component to display the content of the given AudioSampleBuffer. More... | |
| void | setRange (Range< int > newRange) |
| Call this whenever you need to set the range from outside. More... | |
Public Member Functions inherited from AudioDisplayComponent | |
| 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 | ~AudioDisplayComponent () |
| Removes all listeners. More... | |
Public Member Functions inherited from SafeChangeBroadcaster | |
| void | addChangeListener (SafeChangeListener *listener) |
| Registers a listener to receive change callbacks from this broadcaster. More... | |
| void | removeAllChangeListeners () |
| Removes all listeners from the list. More... | |
| void | removeChangeListener (SafeChangeListener *listener) |
| Unregisters a listener from the list. More... | |
| void | sendAllocationFreeChangeMessage () |
| This will send a message without allocating a message slot. More... | |
| void | sendChangeMessage (const String &=String()) |
| Causes an asynchronous change message to be sent to all the registered listeners. More... | |
| void | sendSynchronousChangeMessage () |
| Sends a synchronous change message to all the registered listeners. More... | |
A waveform component to display the content of a pooled AudioSampleBuffer.
Features:
|
inline |
Returns the currently loaded file name.
|
inlineoverridevirtual |
Returns only 44100.0 (this will have no impact, but must be overriden.
Implements AudioDisplayComponent.
| void setAudioSampleBuffer | ( | const AudioSampleBuffer * | b, |
| const String & | fileName, | ||
| NotificationType | notifyListeners | ||
| ) |
Call this when you want the component to display the content of the given AudioSampleBuffer.
It repaints the waveform, resets the range and calls rangeChanged for all registered AreaListeners.
| void setRange | ( | Range< int > | newRange | ) |
Call this whenever you need to set the range from outside.