47 m_playlist = playlist;
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()});
276 Q_EMIT stateChanged(m_state);
void setVolumePerChannel(int left, int right)
void setEqualizerConfig()
void setPreamp(double preamp)
bool isEmpty() const noexcept
TTK::PlayMode playbackMode() const noexcept
void setPlaylist(MusicPlaylist *playlist) noexcept
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
void setVolume(int volume)
bool isMuted() const noexcept
MusicPlayer(QObject *parent=nullptr)
void durationChanged(qint64 duration)
The namespace of the application object.
#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.
bool isPlaying() const noexcept
void setVolume(int volume)
void setCurrentIndex(int index)
void setCurrentPlayState(TTK::PlayState state) noexcept
void positionChanged(qint64 position)
void setEnabledEffect(bool enabled)
void setGain(int band, double gain)
Enhance enhanced() const noexcept
int currentIndex() const noexcept
void setEnabled(bool enabled=true)
TTK::PlayState state() const noexcept
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