102 case Enhance::Off:
setEqualizerEffect({0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0});
break;
103 case Enhance::Vocal:
setEqualizerEffect({0, 0, 4, 1, -5, -1, 2, -2, -4, -4, 0});
break;
104 case Enhance::NICAM:
setEqualizerEffect({6, -12, -12, -9, -6, -3, -12, -9, -6, -3, -12});
break;
105 case Enhance::Subwoofer:
setEqualizerEffect({6, 6, -10, -10, 0, 0, -3, -5, -7, -9, -11});
break;
190 setEqualizerEffect({0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0});
201 if(eqValue.count() == 11)
203 setEqualizerEffect({eqValue[0].toInt(), eqValue[1].toInt(), eqValue[2].toInt(), eqValue[3].toInt(),
204 eqValue[4].toInt(), eqValue[5].toInt(), eqValue[6].toInt(), eqValue[7].toInt(),
205 eqValue[8].toInt(), eqValue[9].toInt(), eqValue[10].toInt()});
void setEqualizerConfig()
void setCurrentPlayState(TTK::PlayState state)
void setPreamp(double preamp)
bool isSameMediaPath(const QString &path) const
void setEnhanced(Enhance type)
void setPosition(qint64 position)
void setEqualizerEffect(const TTKIntList &hz)
MusicPlaylist * m_playlist
EqSettings eqSettings() const
TTK::PlayMode playbackMode() const
void setVolume(int volume)
MusicPlayer(QObject *parent=nullptr)
TTK::PlayState state() const
void durationChanged(qint64 duration)
The namespace of the process utils.
#define TTK_SIGNLE_SHOT(...)
QString currentMediaPath() const
bool play(const QString &source, bool queue=false, qint64 offset=-1)
The EqSettings class helps to work with equalizer settings.
void stateChanged(TTK::PlayState state)
void setCurrentIndex(int index)
void positionChanged(qint64 position)
void setEnabledEffect(bool enabled)
void setGain(int band, double gain)
void setVolume(int left, int right)
void setEnabled(bool enabled=true)
void setPlaylist(MusicPlaylist *playlist)
The class of the music play list.
void setEqSettings(const EqSettings &settings)
void setBalance(int balance)
The SoundCore class provides a simple interface for audio playback.
void setMuted(bool muted)
Qmmp::State state() const