Re: [Vala] Gstream Capture audio from microphone

2011-11-16 Thread Thijs Vermeir
On Wed, Nov 16, 2011 at 3:36 PM, Edwin DLCA edwinsp...@gmail.com wrote: As I can capture audio from microphone. Can you help me with a piece of sample code. I am new to vala. Thank you. A great to start would be the vala gstreamer examples: http://live.gnome.org/Vala/GStreamerSample Then

Re: [Vala] How to get a const substring without copying?

2011-11-06 Thread Thijs Vermeir
On Sun, Nov 6, 2011 at 3:44 PM, PCMan pcman...@gmail.com wrote: Hello, It's me again. In C language, sometimes we do this: char* uri = ftp://140.112.172.1;; char* ip = str + 6;  // get the IP part of the string without copying. With vala, either string.substring() or string[start:end] needs

Re: [Vala] gstreamer element

2011-04-11 Thread Thijs Vermeir
Hey, On Sun, Apr 10, 2011 at 10:27 PM, Jordi Burguet Castell jordi.burguet.cast...@gmail.com wrote: Hello, Has anyone tried to do a gstreamer *element* in vala? It sounds to me like it would be worth because of the more succinct syntax, but I could not figure out how to put the element and

Re: [Vala] Signal connect syntax

2009-04-17 Thread Thijs Vermeir
On Wed, Apr 15, 2009 at 4:22 PM, pancake panc...@youterm.com wrote: lambdas can be used with .connect() ? Just place the full lamba expression in the brackets. var button = new Button.with_label (Click me!); button.clicked += (source) = { source.label = Thank you; };

Re: [Vala] Gst.Message.type_get_name does not exist

2009-03-04 Thread Thijs Vermeir
2009/3/4 Frédéric Gaudy fred_ga...@yahoo.fr: Hi, since vala 0.5.7, static function Gst.Message.type_get_name() does not exist in vapi file, but still in vala doc (http://valadoc.org/?pkg=gstreamer-0.10element=Gst.Message) Is it a forgetting or an api change. The API is slightly different,

Re: [Vala] User managed memory?

2008-11-14 Thread Thijs Vermeir
Hello, there is already a delete keyword defined for pointers, and I think it is the only way to free pointers, if you don't use the delete statement you are leaking the allocated memory, here is an example: == example.vala using GLib; public struct Example { public int first; public int

Re: [Vala] Problem with gstreamer bin

2008-11-14 Thread Thijs Vermeir
Hi, 2008/11/14 Spencer, Matthew [EMAIL PROTECTED]: Hi Guys I am playing with Vala with a view to presenting information about it at our companies developer conference in a couple of weeks. With this in mind I am trying to build up a test application that shows video playback using

Re: [Vala] Problem with gstreamer bin

2008-11-14 Thread Thijs Vermeir
) To indicate to valac the passing of ownership to the bin? Yes, that should also work. Gr, Thijs Matt -Original Message- From: Thijs Vermeir [mailto:[EMAIL PROTECTED] Sent: 14 November 2008 17:07 To: Spencer, Matthew Cc: vala-list@gnome.org Subject: Re: [Vala] Problem with gstreamer

Re: [Vala] Problem with gstreamer bin

2008-11-14 Thread Thijs Vermeir
and change them into weak references for the rest of the function scope. I don't suppose there is any way of achieving this is there? With bin.add you take a ref of the element so you can keep them using in your function. Gr, Thijs Matt -Original Message- From: Thijs Vermeir [mailto

Re: [Vala] How to subclass a Gtk.Label?

2008-10-30 Thread Thijs Vermeir
Hi, On Thu, Oct 30, 2008 at 2:49 PM, Frederik [EMAIL PROTECTED] wrote: Hi, I tried to subclass a Label, but the program will crash: - using Gtk; public class MyLabel : Label { public MyLabel () { this.text =

Re: [Vala] How to subclass a Gtk.Label?

2008-10-30 Thread Thijs Vermeir
Hi On Thu, Oct 30, 2008 at 3:22 PM, Luca Dionisi [EMAIL PROTECTED] wrote: On Thu, Oct 30, 2008 at 3:15 PM, Thijs Vermeir [EMAIL PROTECTED] wrote: use should not use text directly but use the set_text function, (like you would do in C) Then vapi file should declare text as a read-only

Re: [Vala] Vala autoconf macro

2008-08-19 Thread Thijs Vermeir
Hi, On Tue, Aug 19, 2008 at 9:17 PM, Arto Karppinen [EMAIL PROTECTED] wrote: I agree that autotools is a difficult and obscure system that works by dark magic. Unfortunately, autotools does work everywhere, not just in most places, which is why it gets my vote. I don't think there is

Re: [Vala] how to call the base class constructor

2008-08-08 Thread Thijs Vermeir
Hi, On Fri, Aug 8, 2008 at 3:15 PM, picca [EMAIL PROTECTED] wrote: Le Fri, 8 Aug 2008 23:03:20 +1000, Jared Moore [EMAIL PROTECTED] a écrit : Hi, As far as I know that's not possible at the moment in vala. The way that objects are constructed is quite different from Java or C#. There's

[Vala] gdk/gdkkeysyms.h excluded from gdk package

2008-05-20 Thread Thijs Vermeir
Hello, I need one of the following macros defined in the file gdk/gdkkeysyms.h. Like GDK_Up, GDK_Down, ... But I see the file is excluded from the gdk package. Why is it not included? and how can I access the GDK_Up macro? Thanks, Thijs ___ Vala-list