6.0.0-rc4Source

QtFM::EngineConfig Struct

The EngineConfig struct holds the settings of an Engine, fixed when it is constructed. More…

Header#include <QtFM>
CMaketarget_link_libraries(app PRIVATE Nt::FM)
ModuleNt FM C++ Classes

List of all members, including inherited members

Public Variables

intsampleRate
intmaxVoices
intblockSize
SampleFormatformat
quint32seed
intqueueCapacity
QList<ChipType>chips

Detailed Description

Differences from Qt

Only the OPL2 and OPL3 have emulation cores.

Member Variable Documentation

int QtFM::EngineConfig::blockSize

The number of frames that a sound output renders at a time, 256 by default.

QList<ChipType> QtFM::EngineConfig::chips

The chip cores to run, such as {ChipType::OPL2}, at most four. Chips without an emulation core are left out.

See also QtFM::Engine::chip().

SampleFormat QtFM::EngineConfig::format

The sample format that the sound output asks for, SampleFormat::Float32 by default.

int QtFM::EngineConfig::maxVoices

The number of voices that play at once, 32 by default. A play() beyond it steals a voice.

int QtFM::EngineConfig::queueCapacity

The number of commands that can wait for the audio thread, 1024 by default. Commands sent while the queue is full are dropped.

int QtFM::EngineConfig::sampleRate

The sample rate in Hz, 48000 by default.

quint32 QtFM::EngineConfig::seed

The seed of the engine's random numbers; 0, the default, picks a random seed.