Public Member Functions | List of all members
AudioSampleBufferComponentBase Class Referenceabstract

A waveform component to display the content of a pooled AudioSampleBuffer. More...

Inheritance diagram for AudioSampleBufferComponentBase:
AudioDisplayComponent SafeChangeBroadcaster SafeChangeListener HiseAudioSampleBufferComponent

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...
 

Detailed Description

A waveform component to display the content of a pooled AudioSampleBuffer.

Features:

Member Function Documentation

const String& getCurrentlyLoadedFileName ( ) const
inline

Returns the currently loaded file name.

double getSampleRate ( void  ) const
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.

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