Re: [Vala] Manual VAPI writing



Harry Van Haaren píše v Po 19. 07. 2010 v 21:45 +0100:
Hey All,

I had this working before, but due to Hard disk issues I lost the .vapi.
Currently I have a vapi that will create the right types, initialize the
object (and destroy it),
but I cant figure the "read" function out anymore:


        // sf_count_t    sf_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.

Attachment: signature.asc
Description: Toto je digitálně podepsaná část zprávy



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]