|
| | Detector (unsigned frameRate, unsigned periodLengthInSeconds, QObject *parent=nullptr) |
| | Construct a new Detector object.
|
|
unsigned | period () const |
|
QMutex * | getMutex () |
|
void | setTRPeriod (unsigned p) |
| unsigned | secondInPeriod () const |
| | Get the current second in the period.
|
|
void | clear () |
| | Clear the detector buffer.
|
| bool | reset () override |
| | Reset the detector state.
|
|
void | resetBufferContent () |
| | Reset the buffer content to zero.
|
|
void | resetBufferPosition () |
| | Reset the buffer position based on current time.
|
|
Q_SIGNAL void | framesWritten (qint64) const |
| Q_SLOT void | setBlockSize (unsigned) |
| | Set the block size for FFT processing.
|
|
bool | initialize (OpenMode mode, Channel channel) |
|
bool | isSequential () const override |
|
size_t | bytesPerFrame () const |
|
Channel | channel () const |
|
|
qint64 | readData (char *, qint64) override |
| qint64 | writeData (char const *, qint64) override |
| | Write data to the detector buffer.
|
|
| AudioDevice (QObject *parent=nullptr) |
|
void | store (char const *source, size_t numFrames, qint16 *dest) |
|
qint16 * | load (qint16 const sample, qint16 *dest) |
|
| enum | Channel { Mono
, Left
, Right
, Both
} |
|
static char const * | toString (Channel c) |
|
static Channel | fromString (QString const &str) |
◆ Detector()
| Detector::Detector |
( |
unsigned | frameRate, |
|
|
unsigned | periodLengthInSeconds, |
|
|
QObject * | parent = nullptr ) |
Construct a new Detector object.
- Parameters
-
| frameRate | |
| periodLengthInSeconds | |
| parent | |
◆ reset()
Reset the detector state.
- Returns
- true
-
false
◆ secondInPeriod()
| unsigned Detector::secondInPeriod |
( |
| ) |
const |
Get the current second in the period.
- Returns
- unsigned
◆ setBlockSize()
| void Detector::setBlockSize |
( |
unsigned | n | ) |
|
Set the block size for FFT processing.
- Parameters
-
◆ writeData()
| qint64 Detector::writeData |
( |
char const * | data, |
|
|
qint64 | maxSize ) |
|
overrideprotected |
Write data to the detector buffer.
- Parameters
-
- Returns
- qint64
The documentation for this class was generated from the following files: