I’ve been trying to find a good OSC library to use in my iOS apps for some upcoming projects.
I would prefer to use a library with a neat objective-C api so that I don’t have to mess with any C++, but there isn’t an obvious winner (probably because the established C++ libraries are so good).
So here’s a (probably incomplete) list of the OSC library options for iOS as of today.
- MetatoneOSC: Fork of F53OSC - easiest to setup and use in this list.
- F53OSC: A nice little Objective-C library for sending, receiving, and parsing OSC messages.
- bbosc “a cocoa implementation of the OSC protocol”
- vvosc part of vvopensource “frameworks for working with OSC and MIDI data on OS X”
- CocoaOSC “an Objective-C library for sending and receiving Open Sound Control 1.0”
(popular) C++ libraries
- oscpack, a common favourite, basis for popular openFrameworks library ofxOSC, works well and looks like it might be refreshed soon.
- liblo “Lightweight OSC implementation” - used in a number of older OSC sending iOS apps.
- oscpkt “Ultra minimalistic OSC library”.
- oscpp “a header-only C++11 library for constructing and parsing OpenSoundControl packets”
One of the problems with the objective-C libraries seems to be the rapid changes in Xcode. Of the four options, CocoaOSC seems to be the best maintained but it is “incomplete” according the author. I’ve had best experience with bbosc, but not with the included Xcode project.
The long term solution might be to learn more about C++ and integrate one of the C++ libraries into my projects…
In order to do this, I’d have to setup a UDP socket in the Objective-C code and the established way to do that in iOS would be with…
- CocoaAsyncSocket “easy-to-use and powerful asynchronous socket libraries for Mac and iOS”