A simple reference-counted struct that holds a level-meter value that can be read using getCurrentLevel().
More...
#include <juce_AudioDeviceManager.h>
A simple reference-counted struct that holds a level-meter value that can be read using getCurrentLevel().
This is used to ensure that the level processing code is only executed when something holds a reference to one of these objects and will be bypassed otherwise.
- See also
- getInputLevelGetter, getOutputLevelGetter
◆ Ptr
◆ LevelMeter()
juce::AudioDeviceManager::LevelMeter::LevelMeter |
( |
| ) |
|
|
noexcept |
◆ decReferenceCount()
void juce::ReferenceCountedObject::decReferenceCount |
( |
| ) |
|
|
inlinenoexceptinherited |
Decreases the object's reference count.
If the count gets to zero, the object will be deleted.
References jassert.
◆ decReferenceCountWithoutDeleting()
bool juce::ReferenceCountedObject::decReferenceCountWithoutDeleting |
( |
| ) |
|
|
inlinenoexceptinherited |
Decreases the object's reference count.
If the count gets to zero, the object will not be deleted, but this method will return true, allowing the caller to take care of deletion.
References jassert.
◆ getCurrentLevel()
double juce::AudioDeviceManager::LevelMeter::getCurrentLevel |
( |
| ) |
const |
|
noexcept |
◆ getReferenceCount()
int juce::ReferenceCountedObject::getReferenceCount |
( |
| ) |
const |
|
inlinenoexceptinherited |
Returns the object's current reference count.
◆ incReferenceCount()
void juce::ReferenceCountedObject::incReferenceCount |
( |
| ) |
|
|
inlinenoexceptinherited |
◆ resetReferenceCount()
void juce::ReferenceCountedObject::resetReferenceCount |
( |
| ) |
|
|
inlineprotectednoexceptinherited |
Resets the reference count to zero without deleting the object.
You should probably never need to use this!
◆ updateLevel()
void juce::AudioDeviceManager::LevelMeter::updateLevel |
( |
const float *const * |
, |
|
|
int |
numChannels, |
|
|
int |
numSamples |
|
) |
| |
|
privatenoexcept |
◆ AudioDeviceManager
◆ level
Atomic<float> juce::AudioDeviceManager::LevelMeter::level { 0 } |
|
private |
◆ refCount
Atomic<int> juce::ReferenceCountedObject::refCount { 0 } |
|
privateinherited |
The documentation for this struct was generated from the following file: