diff options
| author | manuel <manuel@mausz.at> | 2011-04-09 16:01:36 +0200 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2011-04-09 16:01:36 +0200 |
| commit | 4c8c448a6de8b33e4a64271d6b2d0d25e00043ab (patch) | |
| tree | cdaffdc2f43e50cbc12f6f6ead9493c7f7058c23 /pacman-c++/audioplayer.cpp | |
| parent | 64a02ded2453082fe13e8a8b408933e8fada131c (diff) | |
| download | foop-4c8c448a6de8b33e4a64271d6b2d0d25e00043ab.tar.gz foop-4c8c448a6de8b33e4a64271d6b2d0d25e00043ab.tar.bz2 foop-4c8c448a6de8b33e4a64271d6b2d0d25e00043ab.zip | |
store sound muted in local settings
Diffstat (limited to 'pacman-c++/audioplayer.cpp')
| -rw-r--r-- | pacman-c++/audioplayer.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pacman-c++/audioplayer.cpp b/pacman-c++/audioplayer.cpp index 5170183..238e05d 100644 --- a/pacman-c++/audioplayer.cpp +++ b/pacman-c++/audioplayer.cpp | |||
| @@ -39,6 +39,8 @@ AudioPlayer::AudioPlayer() | |||
| 39 | connect(m_player, SIGNAL(aboutToFinish()), this, SLOT(aboutToFinish_p())); | 39 | connect(m_player, SIGNAL(aboutToFinish()), this, SLOT(aboutToFinish_p())); |
| 40 | 40 | ||
| 41 | m_output = new Phonon::AudioOutput(Phonon::MusicCategory, m_player); | 41 | m_output = new Phonon::AudioOutput(Phonon::MusicCategory, m_player); |
| 42 | connect(m_output, SIGNAL(mutedChanged(bool)), this, SLOT(mutedChanged_p(bool))); | ||
| 43 | |||
| 42 | Phonon::createPath(m_player, m_output); | 44 | Phonon::createPath(m_player, m_output); |
| 43 | 45 | ||
| 44 | preload(); | 46 | preload(); |
| @@ -169,3 +171,9 @@ void AudioPlayer::testFinished() | |||
| 169 | qDebug() << "There's no sound for you :("; | 171 | qDebug() << "There's no sound for you :("; |
| 170 | disconnect(m_player, SIGNAL(stateChanged(Phonon::State, Phonon::State)), this, SLOT(stateChanged_p(Phonon::State, Phonon::State))); | 172 | disconnect(m_player, SIGNAL(stateChanged(Phonon::State, Phonon::State)), this, SLOT(stateChanged_p(Phonon::State, Phonon::State))); |
| 171 | } | 173 | } |
| 174 | |||
| 175 | |||
| 176 | void AudioPlayer::mutedChanged_p(bool muted) | ||
| 177 | { | ||
| 178 | emit mutedChanged(muted); | ||
| 179 | } | ||
