audio - Play a WAV file on Symbian with Qt (QSound) -


I am trying to run a file using QT builder.

I found this:

  Q Sound :: play ("c: /notify.wav");   

It works on Windows, but when I try Symbian it does not sound, but there is no error.

This is most likely because it does not find the file (a file under notify.wav C):

How do I add a WAV file So that it can be installed on a Symbian device and so I can use it to run the path?

Use the delimitation quack directive in your .pro file Example:

 < Code> Symbian {sounds.sources = path for your wav sounds.path = ./hewhew.wav DEPLOYMENT + = sounds}   

This will deploy wav in your app's directory. QSound :: play ("notify.wav") should work if not try to get the path of your directory from QApplication.

Comments