Public Types | Public Member Functions | List of all members
AudioDeviceManager::LevelMeter Struct Reference

A simple reference-counted struct that holds a level-meter value that can be read using getCurrentLevel(). More...

Inheritance diagram for AudioDeviceManager::LevelMeter:

Public Types

using Ptr = ReferenceCountedObjectPtr< LevelMeter >
 

Public Member Functions

 LevelMeter () noexcept
 
double getCurrentLevel () const noexcept
 
- Public Member Functions inherited from ReferenceCountedObject
void incReferenceCount () noexcept
 Increments the object's reference count. More...
 
void decReferenceCount () noexcept
 Decreases the object's reference count. More...
 
bool decReferenceCountWithoutDeleting () noexcept
 Decreases the object's reference count. More...
 
int getReferenceCount () const noexcept
 Returns the object's current reference count. More...
 

Additional Inherited Members

- Protected Member Functions inherited from ReferenceCountedObject
 ReferenceCountedObject ()=default
 Creates the reference-counted object (with an initial ref count of zero). More...
 
 ReferenceCountedObject (const ReferenceCountedObject &) noexcept
 Copying from another object does not affect this one's reference-count. More...
 
 ReferenceCountedObject (ReferenceCountedObject &&) noexcept
 Copying from another object does not affect this one's reference-count. More...
 
ReferenceCountedObjectoperator= (const ReferenceCountedObject &) noexcept
 Copying from another object does not affect this one's reference-count. More...
 
ReferenceCountedObjectoperator= (ReferenceCountedObject &&) noexcept
 Copying from another object does not affect this one's reference-count. More...
 
virtual ~ReferenceCountedObject ()
 Destructor. More...
 
void resetReferenceCount () noexcept
 Resets the reference count to zero without deleting the object. More...
 

Detailed Description

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

Member Typedef Documentation

◆ Ptr

Constructor & Destructor Documentation

◆ LevelMeter()

AudioDeviceManager::LevelMeter::LevelMeter ( )
noexcept

Member Function Documentation

◆ getCurrentLevel()

double AudioDeviceManager::LevelMeter::getCurrentLevel ( ) const
noexcept

The documentation for this struct was generated from the following file: