diff options
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 | } | ||
