46 m_playlist = playlist;
101 case TTK::Enhance::Off:
setEqualizerEffect({0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0});
break;
102 case TTK::Enhance::Vocal:
setEqualizerEffect({0, 0, 4, 1, -5, -1, 2, -2, -4, -4, 0});
break;
103 case TTK::Enhance::NICAM:
setEqualizerEffect({6, -12, -12, -9, -6, -3, -12, -9, -6, -3, -12});
break;
104 case TTK::Enhance::Subwoofer:
setEqualizerEffect({6, 6, -10, -10, 0, 0, -3, -5, -7, -9, -11});
break;
202 setEqualizerEffect({0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0});
213 if(eqValue.count() == 11)
215 setEqualizerEffect({eqValue[0].toInt(), eqValue[1].toInt(), eqValue[2].toInt(), eqValue[3].toInt(),
216 eqValue[4].toInt(), eqValue[5].toInt(), eqValue[6].toInt(), eqValue[7].toInt(),
217 eqValue[8].toInt(), eqValue[9].toInt(), eqValue[10].toInt()});
306 Q_EMIT stateChanged(m_state);
void setVolumePerChannel(int left, int right)
The class of the music play item.
void setEqualizerConfig()
MusicPlayItem currentItem() const noexcept
void setPreamp(double preamp)
TTK_MODULE_EXPORT QString generateNetworkSongTime(const QString &path, bool format)
bool isEmpty() const noexcept
TTK::PlayMode playbackMode() const noexcept
void setPlaylist(MusicPlaylist *playlist) noexcept
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)
TTK_MODULE_EXPORT QString generateNetworkSongPath(const QString &path)
void durationChanged(qint64 duration)
The namespace of the application object.
#define TTK_SIGNLE_SHOT(...)
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)
#define MUSIC_NETWORK_LIST
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 setEnhance(TTK::Enhance type)
struct MusicPlayer::Data m_enhance
void setMuted(bool muted)
TTK::Enhance enhance() const noexcept
Qmmp::State state() const
#define TTK_CONNECTIONPOOL_REGISTER(object)