Generate sound (not from file)

I am creating a prototype of a small game, and I would like to be able to play simple sounds, the length / tone / height of which depends on what the user is doing.

This is surprisingly difficult. The closest resource I found was:

http://www.tmroyal.com/playing-sounds-in-swift-audioengine.html

But it doesn’t actually make any sound on my device or on the iOS simulator.

Does anyone know any working code to play ANY processed sound routines? Simple sine wave.

+4
source share
2 answers

AudioKit.

, Core Audio. Continuous Control FM- .

+6

All Articles