View Single Post
ciroip's Avatar
Posts: 334 | Thanked: 366 times | Joined on Nov 2008 @ Italy
#137
Originally Posted by 412b View Post
Yep. Sound playing in pygame is crappy. I tried to use it, but cpu consumption is just enormous for that little thing.
You can just use
Code:
hildon.hildon_play_system_sound(absolute_path_to_the_sound_file)
I'm not sure if it can play files other than WAV (no time and too lazy).
The other way, if you need to play other formats, could be using OSD, MPlayer, other player, but it seems to be a bit heavy.
well,I didnt want to sound to harsh with pygame (that seem pretty decent otherwise). qwerty12 already suggested me to use that hildon call (on #maemo, it seem the guy know pretty everything going on on the nokiatablet and Im getting bored to keep thank him) but I was not able to have anything playing (and yes I imported hildon).
Im agree any other solution I checked just fall under the overkilling umbrella categopry. If you confirm the possibility to call it from python Ill keep sniffing this road.
(I think in theory it should works even from the python 'commandline' >>>)

Thank you
__________________
I can't do it. No one can help.
[SIGPIC][/SIGPIC]

Flip Alarm Clock - 3DMania Theme - Synesthesia - Deluxepain
http://ciroip.blogspot.com/
http://twitter.com/ciroippolito

Last edited by ciroip; 2009-01-13 at 15:16.
 

The Following User Says Thank You to ciroip For This Useful Post: