oksunp / vvopensource

Automatically exported from code.google.com/p/vvopensource
0 stars 0 forks source link

Updating VVMidi to work with iOS 4.2 #15

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Greetings,

iOS 4.2 now has CoreMIDI support. I've been experimenting with it and VVMidi, 
and thought I'd share some findings:

References to Cocoa.h need to be changed to UIKit.h using the same bit you use 
in the rest of your project:

#ifdef IPHONE
#import <UIKit/UIKit.h>
#else
#import <Cocoa/Cocoa.h>
#endif

Files need to be renamed as .mm or VVMidiNode will not compile. The .mm is used 
to signify Objective-C++. For some reason, if it's not .mm it will fail on:

        packet = MIDIPacketNext(packet);

I've just started poking around and will post other issues if I find them.

Original issue reported on code.google.com by gmcmu...@gmail.com on 11 Jan 2011 at 5:50

GoogleCodeExporter commented 8 years ago
This used to work for me before i went for XCode 4 with iOS 4.3. Any ideas how 
can I use VVMIDI with XCode 4?

Original comment by AndreasP...@gmail.com on 4 May 2011 at 7:48