Go to the documentation of this file. 1 #ifndef RESAMPLEDSOUNDDEVICE_HH
2 #define RESAMPLEDSOUNDDEVICE_HH
14 template<
typename T>
class EnumSetting;
32 unsigned inputSampleRate,
bool stereo);
38 EmuTime::param time)
override;
47 std::unique_ptr<ResampleAlgo> algo;
void setOutputRate(unsigned sampleRate) override
When a SoundDevice registers itself with the Mixer, the Mixer sets the required sampleRate through th...
bool generateInput(float *buffer, unsigned num)
Note: To enable various optimizations (like SSE), this method is allowed to generate up to 3 extra sa...
T length(const vecN< N, T > &x)
bool updateBuffer(unsigned length, float *buffer, EmuTime::param time) override
Generate sample data.
ResampledSoundDevice(MSXMotherBoard &motherBoard, std::string_view name, static_string_view description, unsigned channels, unsigned inputSampleRate, bool stereo)
Represents a clock with a variable frequency.
DynamicClock & getEmuClock()
void update(const Setting &setting) override
This file implemented 3 utility functions:
Generic Gang-of-Four Observer class, templatized edition.