Problem with qsound :(
-
wrote on 8 Oct 2011, 20:00 last edited by
i have my code like this
@QSound ss2sound("crap.wav");
QObject::connect(&SilentHill2, SIGNAL(clicked()), &ss2sound, SLOT (QSound::play()));
@
but sound doesn't play :( is it the format what is wrong with this iv spent all trying to figure this out -
wrote on 8 Oct 2011, 20:17 last edited by
What Os are you on? What gives
@isAvailable@Did you try an absolute path to your wav file?
Does it work without the connect?
@Ss2sound.play();@ -
wrote on 8 Oct 2011, 21:59 last edited by
the sound file doesn't work even if i do ss2sound.play();
i can't seem to get isavailable to work
and my operating system is windows 7 :)
my file format is wav
and iv tried abosulte path
-
wrote on 9 Oct 2011, 06:50 last edited by
Can you play your wav file at all using a mediaplayer?
-
wrote on 9 Oct 2011, 07:32 last edited by
yes :) media player classic
-
wrote on 9 Oct 2011, 08:00 last edited by
Have a look at" this thread":http://developer.qt.nokia.com/forums/viewthread/4468.
Seems that qsound is deprecated and you should use phonon or qtmultimedia instead.
-
wrote on 9 Oct 2011, 08:16 last edited by
iv used phonon before ill go try and work with that :D
2/7