trikRuntime
|
QIODevice that synthesize sine wave values. More...
#include <audioSynthDevice.h>
Public Member Functions | |
AudioSynthDevice (int sampleRate, int sampleSize, QObject *parent=nullptr) | |
Constructor. More... | |
~AudioSynthDevice ()=default | |
qint64 | readData (char *data, qint64 maxlen) |
Provides reading from device. More... | |
void | start (int hzFreq) |
Opens device, run generation in buffered mode. More... | |
void | stop () |
Close device and reset pose. More... | |
qint64 | writeData (const char *data, qint64 len) |
Stub, because readonly device. More... | |
qint64 | bytesAvailable () const |
Returns amount of available bytes. More... | |
QIODevice that synthesize sine wave values.
AudioSynthDevice::AudioSynthDevice | ( | int | sampleRate, |
int | sampleSize, | ||
QObject * | parent = nullptr |
||
) |
Constructor.
|
default |
qint64 AudioSynthDevice::bytesAvailable | ( | ) | const |
Returns amount of available bytes.
qint64 AudioSynthDevice::readData | ( | char * | data, |
qint64 | maxlen | ||
) |
Provides reading from device.
void AudioSynthDevice::start | ( | int | hzFreq | ) |
Opens device, run generation in buffered mode.
void AudioSynthDevice::stop | ( | ) |
Close device and reset pose.
qint64 AudioSynthDevice::writeData | ( | const char * | data, |
qint64 | len | ||
) |
Stub, because readonly device.