IntPtr compiles with btouch, but how do I pass an array of ints as an IntPtr?
-----Original Message----- From: Dimitris Tavlikos [mailto:[email protected]] Sent: Friday, February 24, 2012 12:49 PM To: Dean Cleaver Cc: [email protected] Subject: Re: [MonoTouch] Linea Pro SDK Have you tried using a System.IntPtr? [Export("playSound:beepData:length")] void PlaySound(int volume, IntPtr data, int length); Dimitris Tavlikos Software Developer Author of "iOS Development using MonoTouch Cookbook" Email: [email protected] Twitter: http://twitter.com/#!/dtavlikos Blog: http://software.tavlikos.com On 24 Feb 2012, at 8:46 PM, Dean Cleaver wrote: > Hi, > > I've tried using David Sandor's Linea Pro bindings[1] but some functions seem > wrong or missing, in particular those related to sound. For example, the > Linea Pro docs have: > > - (void) playSound: > (int) > volume > beepData: > (int *) > data > length: > (int) > length > > David's binding has this: > > [Export("playSound:beepData:length")] > void PlaySound(int volume, int data, int length); > > According to the docs, beepData should be an array of ints, and length is the > length in bytes of the beepData array. Is his binding right? If so how do I > pass an array of ints as a pointer? > > Or is his binding wrong? > > Dino > > [1] > http://blog.davidsandor.com/post/2011/01/05/iPhone-iTouch-barcode-scanning-Hello-World-application-with-MonoTouch-and-LineaSDK.aspx > > _______________________________________________ > MonoTouch mailing list > [email protected] > http://lists.ximian.com/mailman/listinfo/monotouch _______________________________________________ MonoTouch mailing list [email protected] http://lists.ximian.com/mailman/listinfo/monotouch
