Superpowered-iOS-Audio-Output handles all audio session, audio lifecycle (interruptions), output, buffer size, sample rate and routing headaches.  This code is not part of the Superpowered library, "just" an implementation of Apple's complex audio output handling.