56 void setNumChannels (
int numChannels);
63 void setBufferSize (
int bufferSize);
66 void setSamplesPerBlock (
int newNumInputSamplesPerBlock)
noexcept;
69 int getSamplesPerBlock()
const noexcept {
return inputSamplesPerBlock; }
90 void pushBuffer (
const float*
const* channelData,
int numChannels,
int numSamples);
96 void pushSample (
const float* samplesForEachChannel,
int numChannels);
99 void setColours (
Colour backgroundColour,
Colour waveformColour)
noexcept;
102 void setRepaintRate (
int frequencyInHz);
109 const Range<float>* levels,
int numLevels,
int nextSample);
115 void getChannelAsPath (
Path& result,
const Range<float>* levels,
int numLevels,
int nextSample);
125 int numSamples, inputSamplesPerBlock;
126 Colour backgroundColour, waveformColour;
128 void timerCallback()
override;
A multi-channel buffer containing floating point audio samples.
A simple component that can be used to show a scrolling waveform of audio data.
Represents a colour, also including a transparency value.
The base class for all JUCE user-interface objects.
A graphics context, used for drawing a component or image.
An array designed for holding objects.
A path is a sequence of lines and curves that may either form a closed shape or be open-ended.
A general-purpose range object, that simply represents any linear range with a start and end point.
Manages a rectangle and allows geometric operations to be performed on it.
Makes repeated callbacks to a virtual method at a specified time interval.
Used by AudioSource::getNextAudioBlock().