Vladislav Grinchenko wrote:
Someone mentioned calling hildon_play_system_sound("soundfile.wav") in a
prior post, but I can't seem to find the header file for it in my
scratchbox.
Am I missing a library? And if so, what's its name?
It should be in /usr/include/hildon-widgets/hildon-system-sound.h, which
belongs to hildon-libs-dev (>= 0.9.52), older versions don't have this.
You can also use esd_play_file("myprogname", "soundfile.wav", 0); if
play_system_sound is not available. This however does not respect the
system sound level setting and blocks until the sound has been played.
If you want nonblocking audio that's not a system sound, combination of:
int esd = esd_open_sound(NULL);
int sample = esd_file_cache(esd, "myprogname", "soundfile.wav");
esd_sample_play(esd, sample);
esd_sample_free(esd, sample);
esd_close(esd);
should do the trick.
--
Santtu
_______________________________________________
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers