All Classes Namespaces Functions Variables Enumerations Enumerator Modules Pages
Public Member Functions | List of all members
AudioSampleBufferComponent Class Reference
Inheritance diagram for AudioSampleBufferComponent:
AudioDisplayComponent SafeChangeBroadcaster SafeChangeListener

Public Member Functions

void setAudioSampleBuffer (const AudioSampleBuffer *b, const String &fileName)
 
void setRange (Range< int > newRange)
 
const String & getCurrentlyLoadedFileName () const
 
double getSampleRate () const override
 
- Public Member Functions inherited from AudioDisplayComponent
void drawPlaybackBar (Graphics &g)
 
void setPlaybackPosition (double normalizedPlaybackPosition)
 
virtual ~AudioDisplayComponent ()
 
void addAreaListener (Listener *l)
 
void setCurrentArea (SampleArea *area)
 
void drawWaveForm (Graphics &g)
 
- Public Member Functions inherited from SafeChangeBroadcaster
void sendSynchronousChangeMessage ()
 
void addChangeListener (SafeChangeListener *listener)
 
void removeChangeListener (SafeChangeListener *listener)
 
void removeAllChangeListeners ()
 
void sendChangeMessage (const String &=String())
 
void sendAllocationFreeChangeMessage ()
 

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 ( ) 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 
)
inline

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)
inline

Call this whenever you need to set the range from outside.

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