TTKMusicPlayer  3.7.0.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
Public Member Functions | Private Member Functions | Private Attributes | List of all members
ReplayGain Class Reference

#include <replaygain_p.h>

+ Inheritance diagram for ReplayGain:

Public Member Functions

void updateSettings (QmmpSettings::ReplayGainMode mode, double preamp, double default_gain, bool clip)
 
void setReplayGainInfo (const QMap< Qmmp::ReplayGainKey, double > &info)
 
virtual void applyEffect (Buffer *b) overridefinal
 
- Public Member Functions inherited from Effect
 Effect ()=default
 
virtual ~Effect ()=default
 
virtual void configure (quint32 srate, ChannelMap map)
 
quint32 sampleRate () const
 
int channels () const
 
const ChannelMapchannelMap () const
 
AudioParameters audioParameters () const
 
EffectFactoryfactory () const
 

Private Member Functions

void updateScale ()
 

Private Attributes

QMap< Qmmp::ReplayGainKey, double > m_info
 
QmmpSettings::ReplayGainMode m_mode = QmmpSettings::REPLAYGAIN_DISABLED
 
double m_scale = 1.0
 
double m_preamp = 0.0
 
double m_default_gain = 0.0
 
bool m_prevent_clipping = false
 
bool m_disabled = true
 
bool m_update = false
 

Additional Inherited Members

- Static Public Member Functions inherited from Effect
static Effectcreate (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 EffectFactoryfindFactory (const QString &shortName)
 

Detailed Description

Definition at line 31 of file replaygain_p.h.

Member Function Documentation

virtual void ReplayGain::applyEffect ( Buffer b)
finaloverridevirtual

Adds audio effect to the buffer b. Subclass should implement this function.

Implements Effect.

void ReplayGain::setReplayGainInfo ( const QMap< Qmmp::ReplayGainKey, double > &  info)
void ReplayGain::updateScale ( )
private
void ReplayGain::updateSettings ( QmmpSettings::ReplayGainMode  mode,
double  preamp,
double  default_gain,
bool  clip 
)

Member Data Documentation

double ReplayGain::m_default_gain = 0.0
private

Definition at line 45 of file replaygain_p.h.

bool ReplayGain::m_disabled = true
private

Definition at line 47 of file replaygain_p.h.

QMap<Qmmp::ReplayGainKey, double> ReplayGain::m_info
private

Definition at line 41 of file replaygain_p.h.

Definition at line 42 of file replaygain_p.h.

double ReplayGain::m_preamp = 0.0
private

Definition at line 44 of file replaygain_p.h.

bool ReplayGain::m_prevent_clipping = false
private

Definition at line 46 of file replaygain_p.h.

double ReplayGain::m_scale = 1.0
private

Definition at line 43 of file replaygain_p.h.

bool ReplayGain::m_update = false
private

Definition at line 48 of file replaygain_p.h.


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