I'm experimenting with Superpowered on tvOS. I'd like to be able to output audio to more than just two stereo channels. Is this possible using the Superpowered SDK?
So far, what I've tried is modifying the included tvOS example as follows:
In
ViewController.m
, where Superpowered is initialized, I changed the value for thechannels
parameter from2
to6
. (This is for 5.1 surround sound, which is what the connected output device supports.)In
audioHandler.mm
, I added the following toaudioProcessingCallback
:SuperpoweredDeInterleave(stereoOutput, buffers[2], buffers[3], numberOfSamples); SuperpoweredDeInterleave(stereoOutput, buffers[4], buffers[5], numberOfSamples);
With these changes, I expected that the whoosh would be played through all 6 surround sound speakers, but it's only being played in the front left and right speakers. Is there anything else that I need to do to configure Superpowered for surround sound output?
Try this additionally, just before [audioIO start]: