Photon C++ Client API  5.0.7.3
Public Member Functions | List of all members
LevelMeter< T > Class Template Reference

Audio Level Meter. More...

Inheritance diagram for LevelMeter< T >:
Inheritance graph
[legend]
Collaboration diagram for LevelMeter< T >:
Collaboration graph
[legend]

Public Member Functions

 LevelMeter (int samplingRate, int numChannels)
 Create new LevelMeterFloat instance. More...
 
virtual Buffer< T > process (Buffer< T > buf)
 Process a frame of audio data. More...
 
virtual float getCurrentAvgAmp (void) const
 
virtual float getCurrentPeakAmp (void) const
 
virtual float getAccumAvgPeakAmp (void) const
 
virtual void resetAccumAvgPeakAmp (void)
 
- Public Member Functions inherited from ToStringDefaultImplementation
virtual JStringtoString (JString &retStr, bool withTypes=false) const
 
virtual JStringtoString (JString &retStr, bool withTypes=false) const=0
 
JString toString (bool withTypes=false) const
 
- Public Member Functions inherited from ToString
virtual ~ToString (void)
 
virtual JString typeToString (void) const
 
JString toString (bool withTypes=false) const
 

Detailed Description

template<typename T>
class ExitGames::Voice::AudioUtil::LevelMeter< T >

Audio Level Meter.

Constructor & Destructor Documentation

◆ LevelMeter()

LevelMeter ( int  samplingRate,
int  numChannels 
)

Create new LevelMeterFloat instance.

Parameters
samplingRateSampling rate of the audio signal (in Hz).
numChannelsNumber of channels in the audio signal.

Member Function Documentation

◆ process()

Buffer< T > process ( Buffer< T >  buf)
virtual

Process a frame of audio data.

Parameters
bufBuffer containing input audio data
Returns
Buffer containing output audio data

Implements IProcessor< T >.