Re: [SailfishDevel] SoundEffect

2014-10-09 Thread Peter Pykäläinen
Ok I solved it! The WAV -file was in 32-bit. Converted it to be 16-bit and it works just fine. Thank you all for your support. // Peter Pykäläinen On 9 October 2014 23:24, Peter Pykäläinen wrote: > Hi, > > here is the code: > > SoundEffect { > > id: shoot > > source: "../sound

Re: [SailfishDevel] SoundEffect

2014-10-09 Thread Michael Neufing
That is very strange. Can you provide an example? It would be nice, if you could link the sound file, too. Audio-Element is not supposed to play effect-sounds. It is supposed (as the name states) to play audio (music, streams, etc). According to Qt-Docs, it is quite normal that it has a delay w

Re: [SailfishDevel] SoundEffect

2014-10-09 Thread Peter Pykäläinen
Hi. the file is WAV but still does not play. If I use Audio then it plays, but there is a significant delay even sound is only like 200ms long. // Peter Pykäläinen On 9 October 2014 10:11, Michael Neufing wrote: > Hello Peter, > > what format is the sound file of? > QML SoundEffect can play u

Re: [SailfishDevel] SoundEffect

2014-10-09 Thread Michael Neufing
Hello Peter, what format is the sound file of? QML SoundEffect can play uncompressed audio files (typically WAV) only. See the docs for more infos: http://qt-project.org/doc/qt-5/qml-qtmultimedia-soundeffect.html#details Mit freundlichen Grüßen, Michael Neufing Peter Pykäläinen schrieb

[SailfishDevel] SoundEffect

2014-10-08 Thread Peter Pykäläinen
Hi, what's the matter with the QML SoundEffect? How come I don't get any sound with it? I have tried with a resource file, direct path to the file and even a path to the file where QML files are installed under /usr/share/... Nothing works. With Audio tag I get sound but that freezes the UI and