             audioInput.expectsMediaDataInRealTime = true
             self._audioConfiguration = configuration
         }
-        return self._audioInput != nil
+        return self.isAudioSetup
     }
     
     internal func setupWriter() {

            
            self._pixelBufferAdapter = AVAssetWriterInputPixelBufferAdaptor(assetWriterInput: videoInput, sourcePixelBufferAttributes: pixelBufferAttri)
        }
        return self._videoInput != nil
    }
    
    /// Prepares a session for recording audio.

            }
        }
    }
    
    public var isVideoSetup: Bool {
        get {
            return self._videoInput != nil
        }
    }

    /// Checks if the session is setup for recording video
    public var isVideoReady: Bool {
        get {
            return self._videoInput?.isReadyForMoreMediaData ?? false
        }
    }
    
    public var isAudioSetup: Bool {
        get {
            return self._audioInput != nil
        }
    }
    
