Hi Folks,
thank you so much for your response. The game is already written in Qt, so I can't move it to native anymore.
I already had a "working" Phonon implementation, which unfortunately now compiles but doesn't make a beep. When running on my PR 1.2 N900, all I get is this output:
Code:
Lösche übriggebliebene Dateien vorangegangener Ausführungen...
Löschen beendet.
Dateien für Deployment: C:/Symbian/Carbide/workspace/QtBallZ\qtballz_0.1_armel.deb:
Deployment beendet.
Starte Anwendung.
(Reading database ... 20305 files and directories currently installed.)
Preparing to replace qtballz 0.1 (using qtballz_0.1_armel.deb) ...
Unpacking replacement qtballz ...
Setting up qtballz (0.1) ...
"Warning: You do not seem to have the package gstreamer0.10-plugins-good installed.
Some video features have been disabled."
The code looks like this, and I have also set the application name:
Code:
/*
* BallZPhononEngine.cpp
*
* Created on: 25.01.2010
* Author: TAMHAN
*/
#include "BallZPhononEngine.h"
BallZPhononEngine::BallZPhononEngine()
{
configureMusic();
}
BallZPhononEngine::~BallZPhononEngine()
{
destroyMusic();
}
void BallZPhononEngine::configureMusic()
{
bgm=Phonon::createPlayer(Phonon::MusicCategory,Phonon::MediaSource(":/sfx/rsc/music/bgm.wav"));
bgm->setTransitionTime(-500);
bgm->enqueue(Phonon::MediaSource(":/sfx/rsc/music/bgm.wav"));
connect(bgm,SIGNAL(aboutToFinish()),this,SLOT(playMusic()));
playMusic();
lrgboom=Phonon::createPlayer(Phonon::MusicCategory,Phonon::MediaSource(":/sfx/rsc/music/lrgboom.wav"));
midboom=Phonon::createPlayer(Phonon::MusicCategory,Phonon::MediaSource(":/sfx/rsc/music/midboom.wav"));
smlboom=Phonon::createPlayer(Phonon::MusicCategory,Phonon::MediaSource(":/sfx/rsc/music/smlboom.wav"));
lrgboom->play();
}
void BallZPhononEngine::destroyMusic()
{
bgm->clear();
lrgboom->clear();
midboom->clear();
smlboom->clear();
delete bgm;
delete lrgboom;
delete midboom;
delete smlboom;
}
void BallZPhononEngine::playSmlBoom()
{
smlboom->play();
}
void BallZPhononEngine::playMidBoom()
{
midboom->play();
}
void BallZPhononEngine::playLrgBoom()
{
lrgboom->play();
}
void BallZPhononEngine::playMusic()
{
bgm->stop();
bgm->play();
}
The strange thing is that it worked on Symbian, but doesnt work on Maemo. The N900 is not muted AFAIK, BTW.
Ideas, anyone?