1#ifndef RESAMPLEDSOUNDDEVICE_HH
2#define RESAMPLEDSOUNDDEVICE_HH
41 unsigned inputSampleRate,
bool stereo);
45 void setOutputRate(
unsigned hostSampleRate,
double speed)
override;
47 EmuTime::param time)
override;
56 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 postSetBalance() override
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.
virtual void postSetBalance()
This file implemented 3 utility functions: