![]() |
Photon Voice
v2.7
|
AudioUtil.LevelMeter< T > Class Template Referenceabstract
Audio Level Meter. More...
Inherits IProcessor< T >, and AudioUtil.ILevelMeter.
Public Member Functions | |
| void | ResetAccumAvgPeakAmp () |
| Reset AccumAvgPeakAmp. More... | |
| abstract T[] | Process (T[] buf) |
| Process a frame of audio data. More... | |
| void | Dispose () |
Protected Attributes | |
| float | ampSum |
| float | ampPeak |
| int | bufferSize |
| float[] | prevValues |
| int | prevValuesHead |
| float | accumAvgPeakAmpSum |
| int | accumAvgPeakAmpCount |
Properties | |
| float | CurrentAvgAmp [get] |
| float | CurrentPeakAmp [get, protected set] |
| float | AccumAvgPeakAmp [get] |
Properties inherited from AudioUtil.ILevelMeter | |
| float | CurrentAvgAmp [get] |
| Average amplitude value over last half second. More... | |
| float | CurrentPeakAmp [get] |
| Maximum amplitude value over last half second sec. More... | |
| float | AccumAvgPeakAmp [get] |
| Average of CurrentPeakAmps since last reset. More... | |
Detailed Description
Audio Level Meter.
Member Function Documentation
|
pure virtual |
Process a frame of audio data.
- Parameters
-
buf Buffer containing input audio data
- Returns
- Buffer containing output audio data
Implements IProcessor< T >.
| void ResetAccumAvgPeakAmp | ( | ) |
Reset AccumAvgPeakAmp.
Implements AudioUtil.ILevelMeter.

Properties inherited from