20 :
SoundDevice(motherBoard.getMSXMixer(), name, description, channels, stereo)
21 , resampleSetting(motherBoard.getReactor().getGlobalSettings().getResampleSetting())
23 resampleSetting.
attach(*
this);
28 resampleSetting.
detach(*
this);
40 return algo->generateOutput(buffer, length, time);
52 assert(&setting == &resampleSetting);
59 unsigned outputRate = hostClock.
getFreq();
62 if (outputRate == inputRate) {
63 algo = make_unique<ResampleTrivial>(*this);
65 switch (resampleSetting.
getValue()) {
68 algo = make_unique<ResampleHQ<1>>(
69 *
this, hostClock, inputRate);
71 algo = make_unique<ResampleHQ<2>>(
72 *
this, hostClock, inputRate);
78 *
this, hostClock, inputRate);
81 *
this, hostClock, inputRate);
86 algo = make_unique<ResampleBlip<1>>(
87 *
this, hostClock, inputRate);
89 algo = make_unique<ResampleBlip<2>>(
90 *
this, hostClock, inputRate);