#include <soundbuffer.h>
Public Member Functions | |
int16_t | average () |
uint16_t | average_pwr () |
double | max_pwr () |
double | pwr () |
int16_t | read (uint16_t pos) |
SoundBuffer (uint16_t m_size=0) | |
bool | write (uint16_t pos, int16_t value) |
Private Attributes | |
int32_t | m_average |
int32_t | m_averagePwr |
std::vector< int16_t > | m_Buffer |
double | m_maxPwr |
bool | m_newDataReady |
int32_t | m_pwr |
uint16_t | m_size |
Definition at line 63 of file soundbuffer.h.
mybeat::SoundBuffer::SoundBuffer | ( | uint16_t | m_size = 0 | ) |
Definition at line 61 of file soundbuffer.cpp.
int16_t mybeat::SoundBuffer::average | ( | ) |
Definition at line 68 of file soundbuffer.cpp.
uint16_t mybeat::SoundBuffer::average_pwr | ( | ) |
Definition at line 97 of file soundbuffer.cpp.
double mybeat::SoundBuffer::max_pwr | ( | ) |
Definition at line 91 of file soundbuffer.cpp.
double mybeat::SoundBuffer::pwr | ( | ) |
Definition at line 79 of file soundbuffer.cpp.
int16_t mybeat::SoundBuffer::read | ( | uint16_t | pos | ) |
Definition at line 120 of file soundbuffer.cpp.
bool mybeat::SoundBuffer::write | ( | uint16_t | pos, |
int16_t | value | ||
) |
Definition at line 110 of file soundbuffer.cpp.
int32_t mybeat::SoundBuffer::m_average [private] |
Definition at line 88 of file soundbuffer.h.
int32_t mybeat::SoundBuffer::m_averagePwr [private] |
Definition at line 87 of file soundbuffer.h.
std::vector<int16_t> mybeat::SoundBuffer::m_Buffer [private] |
Definition at line 84 of file soundbuffer.h.
double mybeat::SoundBuffer::m_maxPwr [private] |
Definition at line 85 of file soundbuffer.h.
bool mybeat::SoundBuffer::m_newDataReady [private] |
Definition at line 89 of file soundbuffer.h.
int32_t mybeat::SoundBuffer::m_pwr [private] |
Definition at line 86 of file soundbuffer.h.
uint16_t mybeat::SoundBuffer::m_size [private] |
Definition at line 83 of file soundbuffer.h.