12class ResampledSoundDevice;
14template<
unsigned CHANNELS>
18 static std::unique_ptr<ResampleLQ<CHANNELS>>
create(
23 [[nodiscard]]
bool fetchData(EmuTime::param time,
unsigned& valid);
32template<
unsigned CHANNELS>
38 bool generateOutputImpl(
float* dataOut,
size_t num,
39 EmuTime::param time)
override;
43template<
unsigned CHANNELS>
49 bool generateOutputImpl(
float* dataOut,
size_t num,
50 EmuTime::param time)
override;
Represents a clock with a variable frequency.
A fixed point number, implemented by a 32-bit signed integer.
ResampledSoundDevice & input
bool fetchData(EmuTime::param time, unsigned &valid)
std::array< float, 2 *CHANNELS > lastInput
static std::unique_ptr< ResampleLQ< CHANNELS > > create(ResampledSoundDevice &input, const DynamicClock &hostClock)
const DynamicClock & hostClock
This file implemented 3 utility functions: