PDA

View Full Version : Phonon



QTInfinity
16th November 2008, 20:31
Hi, guys

I was trying out phonon lately.....These are the prerequisites i have

Windows Vista Business
Windows SDK 6.0 (Is it mandatory to have 6.1 ?)
DirectX SDK March 2008
Qt 4.4.3


Phonon::MediaObject *music = Phonon::createPlayer(Phonon::MusicCategory, Phonon::MediaSource("Alien.wav"));
music->play();

However while executing i am getting a runtime error
"This application has requested the runtime to terminate in an unusual way.....".

Could someone help me out with this....
Regards
QTInfinity

wysota
17th November 2008, 09:32
Try debugging. Maybe the problem is not with Phonon itself but with the way you use it.

QTInfinity
19th November 2008, 15:24
I did try out the code from assistant to create the graph manually

Phonon::MediaObject *mediaObject = new Phonon::MediaObject(this);
mediaObject->setCurrentSource(Phonon::MediaSource("/mymusic/barbiegirl.wav"));
Phonon::AudioOutput *audioOutput = new Phonon::AudioOutput(Phonon::MusicCategory, this);
Phonon::Path path = Phonon::createPath(mediaObject, audioOutput);

This works fine....

Issues with the backend technology??

Regards
QTInfinity