12class ResampledSoundDevice;
14template<
unsigned CHANNELS>
28 EmuTime::param time)
override;
31 void calcOutput(
float pos,
float* output);
32 void prepareData(
unsigned emuNum);
39 unsigned nonzeroSamples = 0;
41 std::vector<float> buffer;
43 std::span<const int16_t, HALF_TAB_LEN> permute;
Represents a clock with a variable frequency.
ResampledSoundDevice & input
ResampleHQ(const ResampleHQ &)=delete
ResampleHQ & operator=(const ResampleHQ &)=delete
ResampleHQ(ResampledSoundDevice &input, const DynamicClock &hostClock)
bool generateOutputImpl(float *dataOut, size_t num, EmuTime::param time) override
static constexpr size_t TAB_LEN
static constexpr size_t HALF_TAB_LEN
This file implemented 3 utility functions: