Photon Voice  v2.8
English | 日本語 | 한국
Public Member Functions | List of all members
AudioUtil.LevelMeterShort Class Reference

LevelMeter specialization for short audio. More...

Inherits AudioUtil.LevelMeter< short >.

Public Member Functions

 LevelMeterShort (int samplingRate, int numChannels)
 Create new LevelMeterShort instance. More...
 
override short[] Process (short[] buf)
 
- Public Member Functions inherited from AudioUtil.LevelMeter< short >
void ResetAccumAvgPeakAmp ()
 Reset AccumAvgPeakAmp. More...
 
abstract T[] Process (T[] buf)
 Process a frame of audio data. More...
 
void Dispose ()
 

Additional Inherited Members

- Protected Attributes inherited from AudioUtil.LevelMeter< short >
float ampSum
 
float ampPeak
 
int bufferSize
 
float[] prevValues
 
int prevValuesHead
 
float accumAvgPeakAmpSum
 
int accumAvgPeakAmpCount
 
- Properties inherited from AudioUtil.LevelMeter< short >
float CurrentAvgAmp [get]
 
float CurrentPeakAmp [get, protected set]
 
float AccumAvgPeakAmp [get]
 

Detailed Description

LevelMeter specialization for short audio.

Constructor & Destructor Documentation

LevelMeterShort ( int  samplingRate,
int  numChannels 
)

Create new LevelMeterShort instance.

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