TTKMusicPlayer
4.1.3.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
|
#include <dithering_p.h>
Classes | |
struct | AudioDither |
Public Member Functions | |
Dithering () | |
virtual void | configure (quint32 srate, ChannelMap map) overridefinal |
virtual void | applyEffect (Buffer *b) overridefinal |
void | setFormats (Qmmp::AudioFormat in, Qmmp::AudioFormat out) |
void | setEnabled (bool enabled) |
![]() | |
Effect ()=default | |
virtual | ~Effect ()=default |
quint32 | sampleRate () const |
int | channels () const |
const ChannelMap & | channelMap () const |
AudioParameters | audioParameters () const |
EffectFactory * | factory () const |
Private Member Functions | |
void | clearHistory () |
quint32 | prng (quint32 state) |
float | audioLinearDither (float sample, AudioDither *dither) |
Private Attributes | |
int | m_chan = 2 |
AudioDither | m_dither [9] |
float | m_lsb = 0.0f |
bool | m_required = false |
bool | m_enabled |
Additional Inherited Members | |
![]() | |
static Effect * | create (EffectFactory *factory) |
static QList< EffectFactory * > | factories () |
static QList< EffectFactory * > | enabledFactories () |
static QString | file (const EffectFactory *factory) |
static void | setEnabled (EffectFactory *factory, bool enable=true) |
static bool | isEnabled (const EffectFactory *factory) |
static EffectFactory * | findFactory (const QString &shortName) |
Definition at line 31 of file dithering_p.h.
Dithering::Dithering | ( | ) |
|
finaloverridevirtual |
Adds audio effect to the buffer b. Subclass should implement this function.
Implements Effect.
|
private |
|
private |
|
finaloverridevirtual |
Prepares object for usage. Subclasses that reimplement this function must call the base implementation.
srate | Sample rate. |
map | Map of channels. |
Reimplemented from Effect.
|
private |
void Dithering::setEnabled | ( | bool | enabled | ) |
void Dithering::setFormats | ( | Qmmp::AudioFormat | in, |
Qmmp::AudioFormat | out | ||
) |
|
private |
Definition at line 44 of file dithering_p.h.
|
private |
Definition at line 52 of file dithering_p.h.
|
private |
Definition at line 54 of file dithering_p.h.
|
private |
Definition at line 53 of file dithering_p.h.
|
private |
Definition at line 54 of file dithering_p.h.