Re: [Vala] Where does monodevelop-vala hide C code?
Hey Nigel, Indeed if not told to keep the temporary files, valac will by default remove them after a compile. if compiling from the command line (which I highly recommend [1]), do the following: valac --save-temps other stuff file.vala I presume you have checked the MonoDevelop project settings dialog for compiler flags? pass it - - save - temps with the spaces removed. (i put in the spaces so you can see its a double - at the start..) -Harry [1]: Reasons include: Cross platform compilation, independence from .NET/CLR style stuff, understanding, and independence from MonoDevelop itself. I should say I quite liked it to start off, used it for about a month, and then realized that its not the way to go (for me). ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list
Re: [Vala] vala autocomplete with monodevelop
On Wed, Jul 28, 2010 at 11:31 PM, Nigel Griffin ngrif...@vuze.com wrote: I'm wondering if anyone knows how to enable autocomplete with monodevelop-vala. If my random google searches are to be believed, it seems as though this can be accomplished somehow withe a afrodite library in vtg, but I can't find instruction how. Anyway, any help would be greatly appreciated. IIRC MonoDevelop auto-complets using CTags, which should just work most of the time with C / Vala stuff. Try the following: int abcdefghijkl = 0; abc (now hit Ctrl + Space) while the cursor is beside the c. It should auto-complete-suggest-etc I will advise Val(a)Ide, its an IDE written especially for Vala, in Vala. :-) IMO its quite similar to MonoDev, exept that it works better with Vala, doesnt rely on huge virtual machines or any of that. It has integrated support for the Waf build system, allowing others to just compile without having to have ValaIde installed. This is an essential feature, that is missing from MonoDevelop. http://www.valaide.org/ -Harry ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list
Re: [Vala] Gtk Custom widget: drawing with gtk theme colours
Cheers for the XFCE link, didnt know they were doing tut's these days! I got the following vala code to work: unowned Gtk.Style style = this.get_style(); // color.x is a uint16: divide by 65535.0 to get 0-1 range Gdk.Color color = style.bg[0]; cr.set_source_rgb(color.red/65535.0, color.green/65535.0, color.blue/65535.0); probably not the nicest code ever, but it gets the job done. Gdk.cairo_set_source_color(some_cairo_context, some_gdk_color); // taken from the XFCE tutorial That's a nice convenience function, but I dont really like the non-OOP style... Each to their own sure! -Harry On Thu, Jul 22, 2010 at 7:20 PM, Mike Massonnet mmasson...@gmail.comwrote: Hi, 2010/7/21 Harry Van Haaren harryhaa...@gmail.com: Hey All, I've designed a couple of widgets now, (in various languanges: python C++ Vala) and googled for many tutorials regarding how to draw custom widgets in the GTK theme colours. I havent found any example code, or tutorial yet... I hope somebody has a pointer on how I can extract the colours from the current theme? http://wiki.xfce.org/howto/monochrome-icon#gtk_colors HTH, Mike Cheers, -Harry ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list
[Vala] Gtk Custom widget: drawing with gtk theme colours
Hey All, I've designed a couple of widgets now, (in various languanges: python C++ Vala) and googled for many tutorials regarding how to draw custom widgets in the GTK theme colours. I havent found any example code, or tutorial yet... I hope somebody has a pointer on how I can extract the colours from the current theme? Cheers, -Harry ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list
Re: [Vala] exit() ? quit() ?
Cheers, but unfortunatly, I dont have a main loop running at the time. Using Gtk.main_quit() in that spot just returns a: (main:10988): Gtk-CRITICAL **: gtk_main_quit: assertion `main_loops != NULL' failed while the program keeps running... I'm looking for the C function: exit(-1); Thanks, -Harry On Wed, Jul 21, 2010 at 11:42 PM, Robert Powell r...@yorba.org wrote: On Wed, Jul 21, 2010 at 3:32 PM, Harry Van Haaren harryhaa...@gmail.comwrote: Hey all, Very simple question: Im looking for a quit() function, or exit(). Gtk.main_quit may do what you want. Hope that helps. Rob ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list
Re: [Vala] gstreamer-controller bindings
On Mon, Jul 19, 2010 at 2:54 PM, Shawn Ferris shawn.fer...@gmail.comwrote: So how to get this fixed without the fixes being overwritten by vapigen in the future You can use metadata to knudge vapigen to generate correct bindings. True. That will only work if you know what the correct bindings are. I described how to test them. If your going to patch the .vapi file, please send a bug report or email to the maintainer of the GST .vapi Cheers, -Harry ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list
Re: [Vala] Manual VAPI writing
// sf_count_tsf_read_float(SNDFILE *sndfile, float *ptr, sf_count_t items) ; [CCode (cname=sf_read_float)] public static count_t read_float(float *array,count_t numSamples); You don't want that to be a static method. Static means it doesn't work with an actual object instance. jeezsh.. Should have seen that! Thank you! Working now. -Harry ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list
Re: [Vala] clutter-gst and gst
Hey, The link you posted seems dead, I got a page not found after clicking it..? OTOH: Have you tried rebuilding your pipeline using the gst-launch command line tool? This should show if its a GStreamer error, or your code... I'm not familiar with GSt much, so I'll only be of limited use. Cheers, -Harry On Sun, Jul 18, 2010 at 1:28 AM, Steve Salazar eagsala...@hotmail.comwrote: Hi, I'm having some problems with gst. I've got this test code that I adapted from the vala gst examples. I changed it so that the src element is a filesrc and I added a decodedbin and ffmpegcolorspace element. I have tested this pipeline on the command line and it seems to work fine but my vala code doesn't work. It compiles clean and I get no runtime errors or warnings, I just don't get any video. http://gist.github.com/47997517:21I get zero compile or runtime messages but I just don't get any video output.17:22The stdout.printf inside my callback from pad_added is never getting called so I think the pipeline is never getting hooked up between the decoder and the colorspace conversion element.17:23the new-decoded-pad signal in the decodebin element I guess I should now hook up to using pad_added? This compiles but I'm still not sure. Thanks in advance for any help! ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list
Re: [Vala] Global int variable.. Problems?
Probably 'index' is already defined as a function or variable in some header. In fact if you put all the code in a namespace, it compiles with no errors. Wauw, that simple.. Nice one. :-) Happy coding for me now, -Harry ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list
Re: [Vala] array declaration
Hey, Coming from a C++ background I first tried typeHere nameHere[]; too. I noticed that newer languages seemed to have type[] name; configuration (Java, C# etc). I'm not part of the Vala team though, so I dont know the official status! -Harry On Wed, Jul 7, 2010 at 5:15 PM, pancake panc...@youterm.com wrote: I have noticed that if you declare an array in a wrong way you get errors from the C compiler instead of handling it at vala level. should this syntax be supported? or we should just throw an error? Here's the test case: $ cat a.vala #!/usr/bin/vala void main () { // uint8[] foo = new uint8[16]; // OK uint8 foo[] = new uint8[16]; // FAIL print(%d\n, foo[0]); } $ vala a.vala /tmp/a.vala.LDAGFV.c: In function '_vala_main': /tmp/a.vala.LDAGFV.c:16:9: error: array size missing in '_tmp0_' /tmp/a.vala.LDAGFV.c:19:9: error: array size missing in 'foo' /tmp/a.vala.LDAGFV.c:20:16: error: incompatible types when assigning to type 'guint8[1]' from type 'guint8 *' /tmp/a.vala.LDAGFV.c:20:6: error: incompatible types when assigning to type 'guint8[1]' from type 'guint8 *' /tmp/a.vala.LDAGFV.c:22:6: error: incompatible types when assigning to type 'guint8[1]' from type 'void *' error: cc exited with status 256 Thanks --pancake ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list
Re: [Vala] Delegate on struct
Hey Nicolas, Any chance you'd compile with valac --save-temps your files etc here? And then maybe post line 113 from your test.c file so we can see what's really going on there? Cheers, -Harry On Thu, Jul 8, 2010 at 12:14 AM, Nicolas HENRY ice...@gmail.com wrote: Hello, I don't understand why this code produce a warning (vala 0.9.2) : public delegate void myDelegateFunc(); struct MyStruct { public myDelegateFunc my_struct_func; } void main(){ string a = test; var t = MyStruct(); t.my_struct_func = () = { print(a); }; t.my_struct_func(); } .../test.vala.c: In function ‘_vala_main’: .../test.vala.c:113: warning: assignment from incompatible pointer type Thanks. ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list
Re: [Vala] Genie, subclassing and some help!
Hey, Got this compiled after a little hassle, for people that want the command: valac --vapidir=./ --pkg gtk+-2.0 --pkg appindicator-0.1 --pkg webkit-1.0 indicator.gs webkit_view.gs main_window.gs main.gs with the appindicator.vapi in the same dir as the files. It should compile, assuming you have all the dependencies n things in place. It just pops up in the same place as all my other icons, so LXDE supports appindicator stuff. :-) Cheers, -Harry PS: Pretty impressed with WebKit, never had sources that used it before.. it will be used for projects in the future! ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list
Re: [Vala] Genie, subclassing and some help!
Don't worry got it solved, indicator was being lost (a local variable) and so I had to bind it as a property of the class and now even subclassing works! Hey, Glad you got it working... any chance you'd post a .zip of the files as you had before with the working example..? To test on my LXDE install, and just to see what exactly it is that this appindicator is all about..! Congrats, -Harry ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list
Re: [Vala] Void*, how to deal with it
Hey, As far as i know, in most versions of JACK, DEFAULT_AUDIO_TYPE is float (32 bit). So I've been casting to (float*), which doesnt segfault. That's not to say that it wont on other peoples computers... Casting to DEF_AUDIO is a better idea.. Ill test it later when I'm at programming. :-) Thanks for the replies. -Harry On Fri, Jul 2, 2010 at 9:16 AM, alberto colombo v...@albx79.it wrote: I've used get_buffer only for MIDI, so far, so I'm not sure how it'd work on raw audio ports. With MIDI ports, you use it like this: void *port_buffer = midi_in.get_buffer(nframes); NFrames count = Midi.get_event_count(port_buffer); for (NFrames i=0; icount; ++i) { Midi.Event e; Midi.Event.get(out e, port_buffer, i); ... I guess, for audio, you'd have to cast void* get_buffer to DefaultAudioSample, something like this (untested!): DefaultAudioSample* buffer = (DefaultAudioSample*)master_l.get_buffer(nframes); Let me know if it works. alb On Wed, 2010-06-30 at 14:26 +0100, Harry Van Haaren wrote: Hey All, I've got a function in the JACK.vapi binding, that returns a buffer. Now it doesnt physically return the buffer, but returns a void* to the buffer. I checked the Vala tutorial for any references to void*, and didnt find anything... This is the function (to be called on a Port object): public void* get_buffer(NFrames nframes); // nframes is a uint32.. not that it matters And this is what I tried (master_l is of Port type): var buffer = master_l.get_buffer(nframes); And what I want to do with this buffer is the following: for(int i = 0; i (uint32) nframes; i++) { buffer[i] = array[i]; // have an array of samples, need to write them to this void* buffer. } Any suggestions..? Thanks for reading, -Harry ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list
Re: [Vala] how to access the length attribute of multi dimensional arrays?
Hey, I've no experience with Multi-Dimensional arrays in Vala, but I can quote a tutorial: http://live.gnome.org/Vala/ValaForJavaProgrammers#Arrays It provides the basics of Vala for Java programmers (me.. in college ;-( but also has a piece that might be of intrest to you. HTH, -Harry On Fri, Jul 2, 2010 at 12:26 AM, Seth Hoenig seth.a.hoe...@gmail.comwrote: So if I pass a matrix to a function (or any multidimensional array), I can only seem to access the .length attribute of the first dimension. Is there a way to access the .length attributes of the other dimensions of the array? public Something(int[,] arr) { _n_rows = arr.length; _n_cols = arr[0, ].length; // no compile :( } In the example above, I can't seem to find a way to find out how many columns are in my matrix. ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list
Re: [Vala] ValaIde Valac: Command line compilation
On Wed, Jun 30, 2010 at 10:41 AM, synkro syn...@gmx.net wrote: Hi! To cross compile for another target platform you need at least a C compiler for that. You then redirect valac to us that compiler. For example: You native platform is Windows and want to build a i386 Linux binary then you need a Linux compiler for Windows. If you can boot in to Linux on your PC then you can of course compile it natively there. I recommend not only provide a Valaide project file but also sources and a makefile. So everybody can build a need target version. Greets Synkro Cheers I hear you. I've been using Waf so far.. so that's fine. Gonna go bug the ValaIde people about Waf integration now... Wasn't working for me erlier on. Might be a user problem though ;-) Thanks, -Harry ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list
Re: [Vala] Genie, subclassing and some help!
In the .vide project you have included a file in /home/andrew/Temp/appindicator-0.1.vapi Were going to need that file too. Put it in the vapi folder. The vapi is in the vapi/ dir, don't know why it has been set to another directory sorry about that. The appindicator-0.1.vapi is in the vapi/ dir Hey, Your right about the appindicator.vapi being in the /vapi folder, sorry I got confused because there a link to a different appindicator.vapi in the project too. Nevermind, all that's needed is in the zip file. As for dependencies, the Ubuntu Lucid Lynx repos must be enabled ( updated) because libappindicator is a new library. (Im still on Ubuntu 9.10). As for compiling, fine, no problems, a window pops up when I run the program. :-) Could you describe the problem again to me? I dont really see what's going wrong..? -Harry ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list
[Vala] Void*, how to deal with it
Hey All, I've got a function in the JACK.vapi binding, that returns a buffer. Now it doesnt physically return the buffer, but returns a void* to the buffer. I checked the Vala tutorial for any references to void*, and didnt find anything... This is the function (to be called on a Port object): public void* get_buffer(NFrames nframes); // nframes is a uint32.. not that it matters And this is what I tried (master_l is of Port type): var buffer = master_l.get_buffer(nframes); And what I want to do with this buffer is the following: for(int i = 0; i (uint32) nframes; i++) { buffer[i] = array[i]; // have an array of samples, need to write them to this void* buffer. } Any suggestions..? Thanks for reading, -Harry ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list
Re: [Vala] Genie, subclassing and some help!
Aha, fully understand the problem now at least. Do you have one of these appIndicator dock things in your panel? The following document [1] seems to say that they might re-design/ change some things in how the docks work. I'm running LXDE, (no fancy AppIndicator dock I dont think...). What I suggest is that your compile using valac --save-temps (provides C output files), check that against the documentation of LibAppIndicator. I have no experience with LibAppIndicator and hence can't really help you much there. If it turns out that it should work, please send me sources and I can try it on my LXDE. -Harry PS: There was/is quite some controversy about libappindicator, see [2]. I'm not sure if this helps dev-s to write documentation test cases... I havent found any. Getting in touch with the authors or LibAppIndicator might be a good idea.. ? Up to you. [1] https://wiki.ubuntu.com/DesktopExperienceTeam/ApplicationIndicators [2] http://www.advogato.org/person/mbanck/diary.html?start=49 Sure, the window popus (which is correct), however the application indicator does not appear. ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list
Re: [Vala] Genie, subclassing and some help!
Hey! 2) Perhaps related, in the main.gs file, I have: init Gtk.init(ref args) create_indicator() Gtk.main() However, if I don;t put the Gtk.main() in the function above (rather than the init), it doesn't work. Why is this/is this on purpose? Maybe you understand this already, just in case though: Gtk needs to be initialized before you can use it (display any widgets or even create them). The function that does this is *Gtk.init() *Then you create some widgets, ie *Gtk.Button.with_label(Hello); *, add this to a window etc... And then to hand control over to Gtk, we call *Gtk.main()*. This function lets Gtk actually *DRAW* the window on the screen, and its is only now that the window is actually SHOWN to the user. (Despite that it was created long beforehand). Hence that these 3 steps are nessisary in your main() function. The reason that its a very good idea to put *Gtk.init() *and *Gtk.main() *in your *main()*, is this: If you want to show 2 toplevel windows, and you've got *Gtk.main()* in your class' init function, Gtk is going to create your class, and then show the window. (ie: pass control of the thread to Gtk.) This is going to halt the program exectution until this window is destroyed, and then your program gets control of the thread back, and the next class' init will be called, and that window shown. Don't think I explained that 100%, but hope you understand me anyway. Cheers, -Harry ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list
[Vala] ValaIde Valac: Command line compilation
Hey all, I'm wondering how things work if I develop my program using ValaIde, and then I want to compile it on a different PC/Platform. Would I have to download the ValaIde for that platform? Or could I do some valac -vide main.vala kind of magic? Cheers, -Harry ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list
[Vala] Manual VAPI writing
Hey all, I'm attempting to learn how to write .vapi files manually. I've looked trough the Jack binding, the GTK+ binding and the sfml bindings. Yet im stumped as to how to write a wrapper for the dead-simple function (declared in a file called bindMe.h): *int add (int a, int b) { return (a + b); }* In my attempt I've tried the following: *[CCode (cheader_filename=bindMe.h)] namespace Math { public class AddStuff { public AddStuff(); [CCode (cname=add)] public static int add (int a, int b); } }* And to see if the binding worked had a .vala file (test.vala) which contains the following: *int main() { var func = new Math.AddStuff(); return 0; }* I have the bindMe.h installed in /usr/include, the .vapi is in the same dir as test.vala Command used to compile:* valac --save-temps --vapidir=./ --pkg binding test.vala* And its output: test.vala:4.6-4.31: warning: local variable `func' declared but never used var func = new Math.AddStuff(); ^^^ /home/harry/programming/vala/bindingTrial/test.c: In function ‘_vala_main’: /home/harry/programming/vala/bindingTrial/test.c:19: error: ‘MathAddStuff’ undeclared (first use in this function) /home/harry/programming/vala/bindingTrial/test.c:19: error: (Each undeclared identifier is reported only once /home/harry/programming/vala/bindingTrial/test.c:19: error: for each function it appears in.) /home/harry/programming/vala/bindingTrial/test.c:19: error: ‘func’ undeclared (first use in this function) Am I doing something fundamentally wrong? Or would this approach usually be ok? Hope somebody can help me learn how to write bindings,I'm eyeing up some nice audio libraries.. ;-) -Harry ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list
Re: [Vala] Manual VAPI writing
Andrea wrote: if your intent is to bind ad use the add function your binding it's quite right, but can be simpler: [CCode (cheader_filename=bindMe.h)] namespace Math { [CCode (cname=add)] public static int add (int a, int b); } Thanks, that's what I needed to hear ;-) I'm working on a LibSndFile wrapper, that's the reason for learning wrapping. I've got the a small part working, but not much (yet). I'm compiling with valac --save-temps, and analysing the output to work out where my errors are. I'm getting stuck on enum types, that are *NOT* in a namespace. Eg: the name of the enum IS what to call that in the output C file. enum {/* True and false */ SF_FALSE= 0, SF_TRUE= 1, /* Modes for opening files. */ SFM_READ= 0x10, SFM_WRITE= 0x20, SFM_RDWR= 0x30, SF_AMBISONIC_NONE= 0x40, SF_AMBISONIC_B_FORMAT= 0x41 } ; Is the one I'm stuck on now. I tried this in the .vapi: class Sndfile { // all other functions ommitted for brevity [CCode (cname=)] public enum FileMode {/* True and false */ SF_FALSE= 0, SF_TRUE= 1, /* Modes for opening files. */ SFM_READ= 0x10, SFM_WRITE= 0x20, SFM_RDWR= 0x30, SF_AMBISONIC_NONE= 0x40, SF_AMBISONIC_B_FORMAT= 0x41 } } but the C output goes like so SNDFILE_FILE_MODE_SFM_READ while I want SFM_READ. I hoped that the cname= would clear the SNDFILE_FILE_MODE_ from the start but it didnt.. Any pointers as to how to do this? Cheers, -Harry ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list
Re: [Vala] Manual VAPI writing
Any pointers as to how to do this? Cheers, -Harry Use cprefix= - maybe you also need to set cname=int in order to have Vala know what to call the type of the values. Yes! Thanks, that worked a charm. Next stumbling block found: when opening a file, sf_open(...) is called. To close the file, sf_close(file) must be called. [CCode (cheader_filename=sndfile.h,cname =SNDFILE)] class Sndfile { [CCode (cname=sf_open, free_function=sf_close)] public Sndfile(string path, FileMode mode, out Info sf_info ); } Doesnt seem to work...? The C output is totally off, ie: // at top of file: #define _sndfile_unref0(var) ((var == NULL) ? NULL : (var = (sndfile_unref (var), NULL))) // where file.close() is called: _sndfile_unref0 (file); I think it must be something in the .vapi, because that C looks totally unrelated to: sf_close(file); ;-) Getting steadily closer... I can print values of the sample loaded from HD already... sound will be coming soon! -Harry ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list
[Vala] Vala: JACK Audio Binding
Hey all, I'm learning Vala at the moment, primarily with the intention to develop apps which support JACK audio output. I'm gonna work towards GStreamer based audio routing, and JACK Transport to Start/Stop my app. For the while, I hope to have a play around with JACK using Vala. So I went looking for bindings and found the following: http://www.mail-archive.com/vala-list@gnome.org/msg02266.html I've read the replies, installed Jack.vapi into /usr/share/vala/vapi but I cant seem to get rid of some certain errors whenever I compile. Are others using this binding successfully? Any tips / info I should know about when using Jack Vala? Cheers, -Harry ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list
Re: [Vala] Vala: JACK Audio Binding
Cheers for the reply the commit! Its a help anyway, I was at 12 errors, now down to 6 errors. (+ 5 warnings). All the errors seem to be of the same kind. (Something due to accessing array[2] ?) I've never written a .vapi and dont really understand all the fancy tricks you do... So best job is probably to post the error output after running the command.. command: valac --pkg jack main.vala // my main.vala is just a single printf statement, no JACK code jack.vapi:48.36-48.44: error: syntax error, no expression allowed between array brackets public int get_aliases(ref string[2] aliases); ^ jack.vapi:48.36-48.44: error: syntax error, no expression allowed between array brackets public int get_aliases(ref string[2] aliases); ^ jack.vapi:270.41-270.47: error: syntax error, no expression allowed between array brackets public void get_read_vector(ref Data[2] vec); ^^^ jack.vapi:270.41-270.47: error: syntax error, no expression allowed between array brackets public void get_read_vector(ref Data[2] vec); ^^^ jack.vapi:271.42-271.48: error: syntax error, no expression allowed between array brackets public void get_write_vector(ref Data[2] vec); ^^^ jack.vapi:271.42-271.48: error: syntax error, no expression allowed between array brackets public void get_write_vector(ref Data[2] vec); ^^^ On Sat, Jun 26, 2010 at 10:25 PM, alberto colombo v...@albx79.it wrote: Hello, I created a bug to track progress on Jack bindings: https://bugzilla.gnome.org/show_bug.cgi?id=576777. I have just committed the latest version I had on my HD (dated November 2009), which should fix quite a few bugs compared to the version in that email. Please note that I didn't have the means or the time to test all the bindings, therefore expect some memory errors on some functions I haven't used. It gives plenty of warning now (it should be updated for vala 0.9), but it should compile. Also, the binding are for version 0.116. If you need features from 0.118, they'll have to be added. Regards Alberto On Sat, 2010-06-26 at 16:04 +0100, Harry Van Haaren wrote: Hey all, I'm learning Vala at the moment, primarily with the intention to develop apps which support JACK audio output. I'm gonna work towards GStreamer based audio routing, and JACK Transport to Start/Stop my app. For the while, I hope to have a play around with JACK using Vala. So I went looking for bindings and found the following: http://www.mail-archive.com/vala-list@gnome.org/msg02266.html I've read the replies, installed Jack.vapi into /usr/share/vala/vapi but I cant seem to get rid of some certain errors whenever I compile. Are others using this binding successfully? Any tips / info I should know about when using Jack Vala? Cheers, -Harry ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list