1#ifndef RESAMPLEDSOUNDDEVICE_HH
2#define RESAMPLEDSOUNDDEVICE_HH
35 unsigned inputSampleRate,
bool stereo);
39 void setOutputRate(
unsigned hostSampleRate,
double speed)
override;
41 EmuTime::param time)
override;
50 std::unique_ptr<ResampleAlgo> algo;
Represents a clock with a variable frequency.
Generic Gang-of-Four Observer class, templatized edition.
bool generateInput(float *buffer, size_t num)
Note: To enable various optimizations (like SSE), this method is allowed to generate up to 3 extra sa...
DynamicClock & getEmuClock()
void update(const Setting &setting) noexcept override
void setOutputRate(unsigned hostSampleRate, double speed) override
When a SoundDevice registers itself with the Mixer, the Mixer sets the required sampleRate through th...
bool updateBuffer(size_t length, float *buffer, EmuTime::param time) override
Generate sample data.
This file implemented 3 utility functions: