Exemplo n.º 1
0
    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();
    }
Exemplo n.º 2
0
 ~iOSAudioIODevice()
 {
     getSessionHolder().activeDevices.removeFirstMatchingValue (this);
     close();
 }
 ~IPhoneAudioIODevice()
 {
     getSessionHolder().activeDevices.removeValue (this);
     close();
 }