trikRuntime
AudioSynthDevice Class Reference

QIODevice that synthesize sine wave values. More...

#include <audioSynthDevice.h>

Inheritance diagram for AudioSynthDevice:
Collaboration diagram for AudioSynthDevice:

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...
 

Detailed Description

QIODevice that synthesize sine wave values.

Constructor & Destructor Documentation

AudioSynthDevice::AudioSynthDevice ( int  sampleRate,
int  sampleSize,
QObject *  parent = nullptr 
)

Constructor.

AudioSynthDevice::~AudioSynthDevice ( )
default

Member Function Documentation

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.


The documentation for this class was generated from the following files: