/STK-on-iOS

Getting The Synthesis Toolkit in C++ to work on Xcode 4.6

Primary LanguageC++

STK-on-iOS

This is an example project that shows how to use the The Synthesis Toolkit in C++ v 4.4.4 for iOS projects, using The Amazing Audio Engine as the audio engine.

The idea behind it is to help integrate those changes INTO the STK so that it fully supports iOS.

Please read the original thread on the STK mailing list for more information.

##Instructions

  1. Clone this repository, then clone the The Amazing Audio Engine by doing: git submodule update --init

##Steps so far:

  1. Get the STK
  2. Copy only the following directories into a new and empty STK folder in the repository:
  • include/
  • rawwaves/
  • src/
  1. Remove the file src/Makefile.in

  2. Drag and drop the STK folder into the Xcode project, select "Create groups for any added folders", tick "Add to targets".

  3. Open your Build Settings, add stk/include/ to your Header Search Paths:

  4. Remove the following files (.h files are in include/, .cpp files are in src/):

Multithreading:

  • Thread.h
  • Thread.cpp
  • Mutex.h
  • Mutex.ccp

Networking:

  • UdpSocket.h
  • UdpSocket.cpp
  • Socket.h
  • Socket.cpp
  • TcpClient.h
  • TcpClient.cpp
  • TcpServer.h
  • TcpServer.cpp

File I/O:

  • InetWvOut.h
  • InetWvOut.cpp
  • InetWvIn.h
  • InetWvIn.cpp

Audio Layer setup:

  • RtAudio.h
  • RtAudio.cpp
  • RtMidi.h
  • RtMidi.cpp
  • RtWvIn.h
  • RtWvIn.cpp
  • RtWvOut.h
  • RtWvOut.cpp
  • RtError.h

In rawwaves/

  • makefun.c
  • makemidi.c
  • makewav.c
  • sine.c

##Thanks to Hari Karam Singh, Richard Dobson, and the MoMu-STK project for useful pointers.