6#ifndef SWIFT_SOUND_SAMPLEPROVIDER_SAWTOOTHGENERATOR_H
7#define SWIFT_SOUND_SAMPLEPROVIDER_SAWTOOTHGENERATOR_H
11#include <QRandomGenerator>
17namespace swift::sound::sample_provider
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.
CSawToothGenerator(double frequency, QObject *parent=nullptr)
Ctor.
int readSamples(QVector< float > &samples, qint64 count)
Read samples.
ISampleProvider(QObject *parent=nullptr)
Ctor.
QObject * parent() const const
#define SWIFT_SOUND_EXPORT
Export a class or function from the library.