|
AudioDataLib
A C++ library of classes supporting a variety of audio-data tasks.
|
#include <WaveForm.h>
Public Member Functions | |
| WaveFormStream (uint32_t maxWaveForms, double maxWaveFormSizeSeconds) | |
| virtual | ~WaveFormStream () |
| virtual double | EvaluateAt (double timeSeconds) const override |
| void | AddSample (const WaveForm::Sample &sample) |
| void | Clear () |
| double | GetDurationSeconds () const |
| double | GetStartTimeSeconds () const |
| double | GetEndTimeSeconds () const |
| bool | AnyAudibleSampleFound () const |
Public Member Functions inherited from AudioDataLib::Function | |
| Function () | |
| virtual | ~Function () |
| virtual double | EvaluateDerivativeAt (double x) const |
Protected Attributes | |
| uint32_t | maxWaveForms |
| double | maxWaveFormSizeSeconds |
| std::list< WaveForm * > * | waveFormList |
If you want to continuously add samples to a wave-form, but you also don't want it to grow without bound, then this class may be helpful.
| WaveFormStream::WaveFormStream | ( | uint32_t | maxWaveForms, |
| double | maxWaveFormSizeSeconds ) |
|
virtual |
| void WaveFormStream::AddSample | ( | const WaveForm::Sample & | sample | ) |
| bool WaveFormStream::AnyAudibleSampleFound | ( | ) | const |
| void WaveFormStream::Clear | ( | ) |
|
overridevirtual |
Derived classes should override this method to provide a means of evaluating this function at the given value, typically representative of time in this library.
Implements AudioDataLib::Function.
| double WaveFormStream::GetDurationSeconds | ( | ) | const |
| double WaveFormStream::GetEndTimeSeconds | ( | ) | const |
| double WaveFormStream::GetStartTimeSeconds | ( | ) | const |
|
protected |
|
protected |
|
protected |