|
2011-09-20
, 08:22
|
Posts: 336 |
Thanked: 47 times |
Joined on Jul 2008
|
#52
|
|
2011-09-20
, 09:08
|
Posts: 355 |
Thanked: 598 times |
Joined on Sep 2009
@ Nizhny Novgorod, Russia
|
#53
|
|
2011-09-20
, 09:28
|
Posts: 875 |
Thanked: 918 times |
Joined on Sep 2010
|
#54
|
The only thing i hate about Vala is a lack of incremental compiling support. All source code must be recompiled after single line change.
auouymous, are you sure you measure memory consumption correctly? VSZ of GTK-based application will be greater, but VSZ includes memory that is shared among all GTK-apps. I think RSS is the right thing to compare. Or you already measure RSS?
|
2011-09-20
, 09:59
|
Posts: 355 |
Thanked: 598 times |
Joined on Sep 2009
@ Nizhny Novgorod, Russia
|
#55
|
I have an idea, why don't you write a new Xlib UI toolkit for Maemo. Lightweight, flexible, pretty graphics, good theme support and so on.
static void main(string[] args) { Gtk.init(ref args); Gst.init(ref args); var pipeline = Gst.ElementFactory.make("playbin2", "player"); pipeline.set("uri", "http://www.peternalitch.ru/mp3/lostandforgotten/1_lost_and_forgotten.mp3"); pipeline.set_state(Gst.State.PLAYING); var window = new Gtk.Window(); window.show_all(); window.destroy.connect(Gtk.main_quit); Gtk.main(); }
|
2011-09-20
, 19:47
|
Posts: 875 |
Thanked: 918 times |
Joined on Sep 2010
|
#56
|
I'm not sure that it will use less memory if it will be as flexible and powerful as GTK
By the way, I have measured RAM consumption of the very simple gstreamer app and it seems to eat around 8mb when playing from local file and ~10mb when playing from http url. Adding empty GTK window adds another 3mb. But that's on desktop PC, i will test it on N810 later but i expect the same result.
|
2011-09-20
, 22:03
|
Posts: 637 |
Thanked: 445 times |
Joined on Dec 2009
@ Kaliningrad, Russia
|
#57
|
|
2011-09-20
, 22:45
|
Posts: 875 |
Thanked: 918 times |
Joined on Sep 2010
|
#58
|
I think play and switch buttons may still work as they used to even in the Settings menu. Who nows, maybe you will need to stop playing immediately…
I would like to hear what to do with seek circle on the seek bar. I have no idea what to draw...
|
2011-09-21
, 01:00
|
|
Posts: 3,811 |
Thanked: 1,151 times |
Joined on Oct 2007
@ East Lansing, MI
|
#59
|
|
2011-09-21
, 08:23
|
Posts: 355 |
Thanked: 598 times |
Joined on Sep 2009
@ Nizhny Novgorod, Russia
|
#60
|
11-13meg for a blank window that plays a song? This will consume 20meg like media player
Somebody mentioned recording live internet radio
There is a libhal binding, but DBus (through DBus-GLib) seems to be better integrated - I don't think all of libhal's functions are bound
http://code.google.com/p/fingertier/ is a player written for the OpenMoko by a person who seems to have had some of the same ideas as you
Last edited by jstokes; 2011-09-20 at 08:27.