From dd99879ab004dd1d81b5942ad35d5ea6c1476c10 Mon Sep 17 00:00:00 2001 From: manuel Date: Thu, 7 Apr 2011 19:35:53 +0200 Subject: fixing app icon on windows add audio player --- pacman-c++/mainwidget.cpp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'pacman-c++/mainwidget.cpp') diff --git a/pacman-c++/mainwidget.cpp b/pacman-c++/mainwidget.cpp index 96cf62f..537c5ad 100644 --- a/pacman-c++/mainwidget.cpp +++ b/pacman-c++/mainwidget.cpp @@ -4,9 +4,7 @@ #include "bonuspoint.h" #include "point.h" #include "constants.h" - -#include -#include +#include "audioplayer.h" // temporary Transmission::map_t createDummyMap() @@ -94,13 +92,11 @@ MainWidget::MainWidget() createGui(); updateMap(createDummyMap()); -#if 1 +#if 0 emit startGame(); #else - Phonon::MediaObject *player = Phonon::createPlayer(Phonon::MusicCategory, - Phonon::MediaSource(new QFile(":/sound/intro"))); - connect(player, SIGNAL(finished()), this, SLOT(startGame())); - player->play(); + AudioPlayer::self()->playIntro(); + connect(AudioPlayer::self(), SIGNAL(finished()), this, SLOT(startGame())); #endif } -- cgit v1.2.3