6 #ifndef SWIFT_SOUND_SAMPLEPROVIDER_SAWTOOTHGENERATOR_H
7 #define SWIFT_SOUND_SAMPLEPROVIDER_SAWTOOTHGENERATOR_H
11 #include <QRandomGenerator>
17 namespace swift::sound::sample_provider
29 virtual int readSamples(QVector<float> &samples, qint64 count)
override;
32 void setGain(
double gain) { m_gain = gain; }
36 double m_frequency = 0.0;
37 double m_sampleRate = 48000;
void setGain(double gain)
Set the gain.
Sample provider interface.
#define SWIFT_SOUND_EXPORT
Export a class or function from the library.