Photon Voice  v2.12
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
float currentPeakAmp
float norm
- 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.

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