Fwd: Porting to Chinook: Hildon API changes
Sorry, forgot to include the mailing list to the list of recipients. On 11/5/07, Graham Cobb [EMAIL PROTECTED] wrote: 1) This must be the easiest: the code currently turns off capitalisation in a hildon input window using: g_object_set (G_OBJECT (w), HILDON_AUTOCAP, FALSE, NULL); Is there an equivalent of this in Chinook? Might be the easiest, but I don't know the answer here. :-) 2) hildon-app and hildon-appview seem to have gone away. Any guide to porting that code to use hildon-program and hildon-window? Did you check http://maemo.org/development/sdks/api_changes_between_maemo_3_2_and_maemo_4_0.html ? It has links to live.gnome.org, and there's a document about this. Especially http://live.gnome.org/Hildon/TwoPointZero/WindowAndProgram in this case. 3) hildon-home-plugin seems to have disappeared. I presume this mechanism has changed. Any guide to how to port that code? This one should be covered by the answer to 2), especially http://maemo.org/community/wiki/hildondesktoppluginhowto . Best regards, Terje ___ maemo-users mailing list maemo-users@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-users
Re: gcompris 8.3.1 port to N800 pre-alpha released
Hi, I have been working on porting gcompris 8.3.1 to N800, the Nokia Internet Tablet. gcompris is a suite of educational games for kids. Yesterday I released the second version in http://repository.maemo.org/extras bora repository. The project is still work-in-progress. I have not tried this on 770. *TO INSTALL* Run apt-get on your N800: apt-get install gcompris-sound-xx gcompris-sound-all gcompris where xx is your favourite language code. You might also want to test the music by installing gcompris-sound-music. *SOURCES* Sources are available in SVN of garage.maemo.org. Check the project page for instructions on how to access the SVN tree. The sources are also available in the extras repository. *WHAT'S NOT WORKING* - Background music. Disable the music, or it might be that all audio will stop. - Python plugin. - You have to tap twice to start a game. - I haven't filtered the list of games, so there are still games which require keyboard. - gcompris is somewhat slow. *CHANGELOG SINCE LAST VERSION* 1. Dependencies fixed. 2. Audio code written by me was cleaned up by Bruno Coudoin from gcompris upstream project. 3. Music packaged. Unfortunately it's still advisable not to install it. 4. Released in maemo.org repository. *CHANGELOG FROM UPSTREAM* 1. Debian control files. Unfortunately Ubuntu's debian files were not useful, as Maemo's Debian tools are of older version. I released gcompris as core, three data packages, common sounds package and localized sound packages. Autoconf and Makefiles required some removal of OS X stuff. I couldn't get it to work. 2. Removed chess. Unfortunately gnuchess is not available for maemo, so I removed the chess game. 3. Removed python plugin. I was not able to get gcompris to start with the python plugin, so I disabled it. 4. Converted all sound files to mp3, and took latest audio code from gcompris upstream with slight modifications. Unfortunately this work is still incomplete, and the background music is still sometimes stopping and preventing sounds effects from being played. *CALL FOR HELP* If you feel that you could help with any of the deficiencies, please don't hesitate to give a hand. Send me email, join my project, send patches, anything. Especially gstreamer and python gurus would be welcome. Enjoy! Best regards, Terje ___ maemo-users mailing list maemo-users@maemo.org https://maemo.org/mailman/listinfo/maemo-users
gcompris 8.3.1 port to N800 pre-alpha released
Hi, I have been working on porting gcompris 8.3.1 to N800, the Nokia Internet Tablet. Yesterday I released the first version in http://garage.maemo.org/projects/gcompris. The project is still work-in-progress. *TO INSTALL* Go to http://garage.maemo.org/projects/gcompris, and download the gcompris core package, data packages 1-3, common sound package and one localized sound package. Install them on your N800. *SOURCES* Sources are available in SVN of garage.maemo.org. Check the project page for instructions on how to access the SVN tree. I haven't uploaded the sources in Debian source format, because garage.maemo.org has a 10MB limit on file size. *WHAT'S NOT WORKING* - Background music. Disable the music, or it might be that all audio will stop. - Python plugin. - You have to tap twice to start a game. - I haven't filtered the list of games, so there are still games which require keyboard. - gcompris is somewhat slow. *CHANGELOG* 1. Debian control files. Unfortunately Ubuntu's debian files were not useful, as Maemo's Debian tools are of older version. I released gcompris as core, three data packages, common sounds package and localized sound packages. Autoconf and Makefiles required some removal of OS X stuff. I couldn't get it to work. 2. Removed chess. Unfortunately gnuchess is not available for maemo, so I removed the chess game. 3. Removed python plugin. I was not able to get gcompris to start with the python plugin, so I disabled it. 4. Converted all sound files to mp3, and almost rewrote the sound code. SDL for Maemo does not support playing of mp3 or ogg files, and the platform in general does not support ogg files. This is why I converted the audio files to mp3 and rewrote the audio code to use gstreamer. Unfortunately this work is still incomplete, and the background music is still causing me gray hair. *CALL FOR HELP* If you feel that you could help with any of the deficiencies, please don't hesitate to give a hand. Send me email, join my project, send patches, anything. Especially gstreamer and python gurus would be welcome. Enjoy! Best regards, Terje ___ maemo-users mailing list maemo-users@maemo.org https://maemo.org/mailman/listinfo/maemo-users
Re: gcompris 8.3.1 port to N800 pre-alpha released
On Monday 14 May 2007 17:54:39 Acadia Secure Networks wrote: Terje, what does this software do? Hi, A good question. :-) gcompris is a suite of educational games targetted for kids. Best regards, Terje ___ maemo-users mailing list maemo-users@maemo.org https://maemo.org/mailman/listinfo/maemo-users
Re: gcompris port to Maemo --- help needed with gstreamer
On Tuesday 01 May 2007 20:53:48 Vladislav Grinchenko wrote: try gst-launch-0.10 firesrc location=FNAME.mp3 ! dspmp3sink that works for me except that it requires synchronous I/O to play mp3s reliably. Hi, I managed to get mp3's to play right (note to others: do not try to use gst_parse_launch(), but create elements yourself), but I am having problems with wavs. I have tried with two ways: I've connected directly filesrc, queue, wavparse and dsppcmsink. This one didn't give any sound, and playback froze. Even gst-launch-0.10 filesrc=bleep.wav ! wavparse ! dsppcmsink freezes at prerolling state. Consistent, but still not satisfactory. :-) The code: GstElement* create_pipeline(char* filename) { g_warning(create_pipeline for %s, filename); GstElement* pipeline = gst_pipeline_new(pipeline); GstElement* src = gst_element_factory_make(filesrc, source); g_object_set (G_OBJECT (src), location, filename, NULL); GstElement* queue = gst_element_factory_make(queue, queue); GstElement* convert = NULL; GstElement* sink = NULL; if( strstr(filename, .mp3) == NULL ) { g_warning(create_pipeline: pcmsink); convert = gst_element_factory_make(wavparse, wavparse); sink = gst_element_factory_make(dsppcmsink, sink); } else { g_warning(create_pipeline: mp3sink); sink = gst_element_factory_make(dspmp3sink, sink); } if(convert) { gst_bin_add_many( GST_BIN(pipeline), src, queue, convert, sink, NULL); gst_element_link_many(src, queue, convert, sink, NULL); } else { gst_bin_add_many( GST_BIN(pipeline), src, queue, sink, NULL); gst_element_link_many(src, queue, sink, NULL); } g_warning(create_pipeline end); return pipeline; } In the second way imitated from maemo-recorder-ui.c, I created only filesrc and wavparse. Then I asked for a pad_added event and in the event handler I created a new dsppcmsink and connected. I tried also with and without queue, but it didn't seem to make any difference. Now the application exits because gst_element_link() in new_pad_cb() fails for some reason. The code: static void new_pad_cb (GstElement *wavparse, GstPad *new_pad, gpointer data) { GstElement *sink; GstElement *pipeline = (GstElement*) data; sink = gst_element_factory_make (dsppcmsink, sink); gst_bin_add (GST_BIN (pipeline), sink); if (!gst_element_link (wavparse, sink)) g_error (link(wavparse, sink) failed!); gst_element_sync_state_with_parent(sink); } GstElement* create_pipeline(char* filename) { g_warning(create_pipeline for %s, filename); GstElement* pipeline = gst_pipeline_new(pipeline); GstElement* src = gst_element_factory_make(filesrc, source); g_object_set (G_OBJECT (src), location, filename, NULL); GstElement* queue = NULL; GstElement* convert = NULL; GstElement* sink = NULL; if( strstr(filename, .mp3) == NULL ) { g_warning(create_pipeline: pcmsink); convert = gst_element_factory_make(wavparse, wavparse); g_signal_connect(convert, pad_added, G_CALLBACK(new_pad_cb), pipeline); } else { g_warning(create_pipeline: mp3sink); queue = gst_element_factory_make(queue, queue); sink = gst_element_factory_make(dspmp3sink, sink); } if(convert) { gst_bin_add_many( GST_BIN(pipeline), src, convert, NULL); gst_element_link_many(src, convert, NULL); } else { gst_bin_add_many( GST_BIN(pipeline), src, queue, sink, NULL); gst_element_link_many(src, queue, sink, NULL); } g_warning(create_pipeline end); return pipeline; } Any ideas? Best regards, Terje ___ maemo-users mailing list maemo-users@maemo.org https://maemo.org/mailman/listinfo/maemo-users