openMSX
Static Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
openmsx::ResampleLQ< CHANNELS > Class Template Reference

#include <ResampleLQ.hh>

Inheritance diagram for openmsx::ResampleLQ< CHANNELS >:
Inheritance graph
[legend]
Collaboration diagram for openmsx::ResampleLQ< CHANNELS >:
Collaboration graph
[legend]

Static Public Member Functions

static std::unique_ptr< ResampleLQ< CHANNELS > > create (ResampledSoundDevice &input, const DynamicClock &hostClock)
 

Protected Types

using FP = FixedPoint< 14 >
 

Protected Member Functions

 ResampleLQ (ResampledSoundDevice &input, const DynamicClock &hostClock)
 
bool fetchData (EmuTime::param time, unsigned &valid)
 
- Protected Member Functions inherited from openmsx::ResampleAlgo
 ResampleAlgo (ResampledSoundDevice &input_)
 
DynamicClockgetEmuClock () const
 
virtual bool generateOutputImpl (float *dataOut, size_t num, EmuTime::param time)=0
 

Protected Attributes

const DynamicClockhostClock
 
const FP step
 
std::array< float, 2 *CHANNELS > lastInput
 
- Protected Attributes inherited from openmsx::ResampleAlgo
ResampledSoundDeviceinput
 

Additional Inherited Members

- Public Member Functions inherited from openmsx::ResampleAlgo
virtual ~ResampleAlgo ()=default
 
bool generateOutput (float *dataOut, size_t num, EmuTime::param time)
 

Detailed Description

template<unsigned CHANNELS>
class openmsx::ResampleLQ< CHANNELS >

Definition at line 15 of file ResampleLQ.hh.

Member Typedef Documentation

◆ FP

template<unsigned CHANNELS>
using openmsx::ResampleLQ< CHANNELS >::FP = FixedPoint<14>
protected

Definition at line 27 of file ResampleLQ.hh.

Constructor & Destructor Documentation

◆ ResampleLQ()

template<unsigned CHANNELS>
openmsx::ResampleLQ< CHANNELS >::ResampleLQ ( ResampledSoundDevice input,
const DynamicClock hostClock 
)
protected

Member Function Documentation

◆ create()

template<unsigned CHANNELS>
std::unique_ptr< ResampleLQ< CHANNELS > > openmsx::ResampleLQ< CHANNELS >::create ( ResampledSoundDevice input,
const DynamicClock hostClock 
)
static

◆ fetchData()

template<unsigned CHANNELS>
bool openmsx::ResampleLQ< CHANNELS >::fetchData ( EmuTime::param  time,
unsigned &  valid 
)
protected

Definition at line 58 of file ResampleLQ.cc.

References ranges::all_of(), ranges::fill(), and xrange().

Member Data Documentation

◆ hostClock

template<unsigned CHANNELS>
const DynamicClock& openmsx::ResampleLQ< CHANNELS >::hostClock
protected

Definition at line 26 of file ResampleLQ.hh.

Referenced by openmsx::ResampleLQ< CHANNELS >::ResampleLQ().

◆ lastInput

template<unsigned CHANNELS>
std::array<float, 2 * CHANNELS> openmsx::ResampleLQ< CHANNELS >::lastInput
protected

Definition at line 29 of file ResampleLQ.hh.

◆ step

template<unsigned CHANNELS>
const FP openmsx::ResampleLQ< CHANNELS >::step
protected

Definition at line 28 of file ResampleLQ.hh.


The documentation for this class was generated from the following files: