iOSAudioIODevice (const String& deviceName) : AudioIODevice (deviceName, "Audio"), actualBufferSize (0), isRunning (false), audioUnit (0), callback (nullptr), floatData (1, 2) { getSessionHolder().activeDevices.add (this); numInputChannels = 2; numOutputChannels = 2; preferredBufferSize = 0; updateDeviceInfo(); }
~iOSAudioIODevice() { getSessionHolder().activeDevices.removeFirstMatchingValue (this); close(); }
~IPhoneAudioIODevice() { getSessionHolder().activeDevices.removeValue (this); close(); }