Re: [Vala] How to generate "inline" C functions?

2011-11-11 Thread pancake
Inline intet module symbols can be defined as static functions in .h they are included once, removed if unused (with gcc warning) If using inline in different .c will not result in inlined functions unless you pass all .c files to the compiler in a shot. Another solution would be to embed those

Re: [Vala] How to generate "inline" C functions?

2011-11-11 Thread Maciej Marcin Piechotka
On Tue, 2011-11-08 at 08:40 +0100, pancake wrote: > Hi > > On 07/11/2011, at 20:58, Luca Bruno > wrote: > > > 2011/11/7 Tal Hadad > > > >> > >>> Is there any CCode attribute to make the generated C function "inline"? > >>> Or, is it possible to generate C macros instead of functions with val

Re: [Vala] play mp3 file

2011-11-11 Thread Maciej Marcin Piechotka
On Fri, 2011-11-11 at 12:06 -0200, Rodrigo Herefeld wrote: > Hi all, i need to play a mp3 file on a vala program, is there any easy way > doing that? You may find this post helpful: http://0pointer.de/blog/projects/guide-to-sound-apis.html Best regards PS. I guess the answer in libcanberra. The

Re: [Vala] play mp3 file

2011-11-11 Thread Alexandre Rosenfeld
A more practical example using a filename (note that you need the right plugins to play mp3 files in GStreamer. Usually gstreamer-ffmpeg is enough for mp3). 1. using Gst; 2. 3. void main (string[] args) { 4. Gst.init (ref args); 5. 6. var pipeline = Gst.parse_launch

Re: [Vala] play mp3 file

2011-11-11 Thread Tal Hadad
It's not a single row, but it easy than it looks like: http://live.gnome.org/Vala/GStreamerSample Tal Date: Fri, 11 Nov 2011 12:06:06 -0200 From: rodrigo.heref...@gmail.com To: vala-list@gnome.org Subject: [Vala] play mp3 file Hi all, i need to play a mp3 file on a vala program, is there any ea

[Vala] play mp3 file

2011-11-11 Thread Rodrigo Herefeld
Hi all, i need to play a mp3 file on a vala program, is there any easy way doing that? -- Rodrigo Cesar Herefeld ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list