Dne 26.12.2013 23:46, Kimmo Lindholm napsal(a):
Is there a method to play default sounds within system, I.e. sound specified as messagetone in audio/feedback settings. ?? I tried to access the wav files directly but... not luck... Something like this didn't work:
SoundEffect
{
id: /newMessage/
source: "sound://theme/jolla-messagetone"
}
it gives:  QSoundEffect(pulseaudio): Error decoding source
and usingsource:"/usr/share/sounds/jolla-ringtones/stereo/jolla-messagetone.wav" does not give any warning, it stops all audio, I can't play media or video either, phone doesn't "ring".
Have to reboot to get them back.
-kimmo
 I read now this in other thread :

For Audio, use PulseAudio (or Qt5 Multimedia / SDL2 Audio if you use
these frameworks). Due to the resource policy, you might have to use
libaudioresource to request playback of audio, otherwise system policy
might prevent you from playing audio, and writing to the audio device
might block forever:

https://github.com/nemomobile/libaudioresource/


HTH
Thomas

-kaacz


_______________________________________________
SailfishOS.org Devel mailing list

_______________________________________________
SailfishOS.org Devel mailing list

Reply via email to