18 #ifndef MT32EMU_LA32_FLOAT_WAVE_GENERATOR_H 19 #define MT32EMU_LA32_FLOAT_WAVE_GENERATOR_H 22 #include "internals.h" 24 #include "LA32WaveGenerator.h" 44 bool sawtoothWaveform;
56 const Bit16s *pcmWaveAddress;
65 bool pcmWaveInterpolated;
75 float getPCMSample(
unsigned int position);
79 void initSynth(
const bool sawtoothWaveform,
const Bit8u pulseWidth,
const Bit8u resonance);
82 void initPCM(
const Bit16s *
const pcmWaveAddress,
const Bit32u pcmWaveLength,
const bool pcmWaveLooped,
const bool pcmWaveInterpolated);
85 float generateNextSample(
const Bit32u amp,
const Bit16u pitch,
const Bit32u cutoff);
91 bool isActive()
const;
94 bool isPCMWave()
const;
102 float masterOutputSample;
103 float slaveOutputSample;
109 void init(
const bool ringModulated,
const bool mixed);
112 void initSynth(
const PairType master,
const bool sawtoothWaveform,
const Bit8u pulseWidth,
const Bit8u resonance);
115 void initPCM(
const PairType master,
const Bit16s *
const pcmWaveAddress,
const Bit32u pcmWaveLength,
const bool pcmWaveLooped);
118 void generateNextSample(
const PairType master,
const Bit32u amp,
const Bit16u pitch,
const Bit32u cutoff);
121 float nextOutSample();
124 void deactivate(
const PairType master);
127 bool isActive(
const PairType master)
const;
132 #endif // #ifndef MT32EMU_LA32_FLOAT_WAVE_GENERATOR_H Definition: LA32WaveGenerator.h:206
Definition: LA32FloatWaveGenerator.h:97
Definition: LA32FloatWaveGenerator.h:36