Problem on iOS


#1

On Windows and Mac my SampleSynth is fine. On iOS however...

2015-01-01 17:12:58.670 SampleSynth[8232:634196] 17:12:58.670 ERROR:     98: Error '!obj' trying to fetch default input device's sample rate
2015-01-01 17:12:58.671 SampleSynth[8232:634196] 17:12:58.671 ERROR:     100: Error getting audio input device sample rate: '!obj'
2015-01-01 17:12:58.671 SampleSynth[8232:634196] 17:12:58.671 WARNING:   230: The input device is 0x0; '(null)'
2015-01-01 17:12:58.671 SampleSynth[8232:634196] 17:12:58.671 WARNING:   234: The output device is 0x26; 'AppleHDAEngineOutput:1B,0,1,2:0'
2015-01-01 17:12:58.671 SampleSynth[8232:634196] 17:12:58.671 ERROR:     400: error '!obj'
2015-01-01 17:12:58.672 SampleSynth[8232:634197] 17:12:58.672 ERROR:     180: EXCEPTION thrown ('!dev'): -
2015-01-01 17:12:58.672 SampleSynth[8232:634197] 17:12:58.672 ERROR:     703: Can't make UISound Renderer
2015-01-01 17:12:58.672 SampleSynth[8232:634196] 17:12:58.672 ERROR:     180: EXCEPTION thrown ('!dev'): -
libc++abi.dylib: terminating with uncaught exception of type CAException

This is when MainContent calls setAudioChannels(0, 2); I did try setAudioChannels(2, 2); but that made no difference?


#2

Here's steps to reproduce:

Create an audio application with Introjucer with targets for Mac and iOS. Build them, the Mac version is fine. The iOS version falls over with:

JUCE v3.1.1
2015-01-01 20:27:23.996 TestAudio[8550:649735] 20:27:23.996 ERROR:     98: Error '!obj' trying to fetch default input device's sample rate
2015-01-01 20:27:23.997 TestAudio[8550:649735] 20:27:23.997 ERROR:     100: Error getting audio input device sample rate: '!obj'
2015-01-01 20:27:23.997 TestAudio[8550:649735] 20:27:23.997 WARNING:   230: The input device is 0x0; '(null)'
2015-01-01 20:27:23.997 TestAudio[8550:649735] 20:27:23.997 WARNING:   234: The output device is 0x26; 'AppleHDAEngineOutput:1B,0,1,2:0'
2015-01-01 20:27:23.997 TestAudio[8550:649735] 20:27:23.997 ERROR:     400: error '!obj'
2015-01-01 20:27:23.998 TestAudio[8550:649726] 20:27:23.998 ERROR:     400: error -66680
2015-01-01 20:27:23.998 TestAudio[8550:649735] 20:27:23.998 ERROR:     400: error -66680
2015-01-01 20:27:23.998 TestAudio[8550:649726] 20:27:23.998 ERROR:     113: * * * NULL AQIONode object
2015-01-01 20:27:23.998 TestAudio[8550:649726] 20:27:23.998 ERROR:     703: Can't make UISound Renderer
2015-01-01 20:27:23.998 TestAudio[8550:649592] 20:27:23.998 ERROR:     >aurioc> 806: failed: -10851 (enable 3, outf< 2 ch,      0 Hz, Int16, inter> inf< 2 ch,      0 Hz, Int16, inter>)
2015-01-01 20:27:23.998 TestAudio[8550:649735] 20:27:23.998 ERROR:     400: error -66680
2015-01-01 20:27:23.998 TestAudio[8550:649735] 20:27:23.998 ERROR:     400: error -66680
2015-01-01 20:27:24.009 TestAudio[8550:649592] 20:27:24.009 ERROR:     >aurioc> 806: failed: -10851 (enable 3, outf< 2 ch,      0 Hz, Int16, inter> inf< 2 ch,      0 Hz, Int16, inter>)