openMSX
|
#include <BlipBuffer.hh>
Public Types | |
using | TimeIndex = FixedPoint< BLIP_PHASE_BITS > |
Public Member Functions | |
BlipBuffer () | |
void | addDelta (TimeIndex time, float delta) |
template<size_t PITCH> | |
bool | readSamples (float *out, size_t samples) |
Static Public Attributes | |
static constexpr int | BLIP_PHASE_BITS = 10 |
Definition at line 15 of file BlipBuffer.hh.
Definition at line 22 of file BlipBuffer.hh.
openmsx::BlipBuffer::BlipBuffer | ( | ) |
Definition at line 83 of file BlipBuffer.cc.
References ranges::fill(), and xrange().
void openmsx::BlipBuffer::addDelta | ( | TimeIndex | time, |
float | delta | ||
) |
Definition at line 98 of file BlipBuffer.cc.
References openmsx::FixedPoint< FRACTION_BITS_ >::fractAsInt(), openmsx::FixedPoint< FRACTION_BITS_ >::toInt(), and xrange().
Referenced by openmsx::DACSound16S::writeDAC().
template bool openmsx::BlipBuffer::readSamples< 2 > | ( | float * | out, |
size_t | samples | ||
) |
Definition at line 152 of file BlipBuffer.cc.
References ranges::all_of(), and xrange().
|
staticconstexpr |
Definition at line 20 of file BlipBuffer.hh.