videoLat 2.0
Video conferencing delay measurements
Public Member Functions | Protected Attributes | Properties
AudioInput Class Reference

#import <AudioInput.h>

Inheritance diagram for AudioInput:
Inheritance graph
[legend]
Collaboration diagram for AudioInput:
Collaboration graph
[legend]

List of all members.

Public Member Functions

(uint64_t) - now
(bool) - available
(NSArray *) - deviceNames
(BOOL) - switchToDeviceWithName:
(void) - startCapturing:
(void) - pauseCapturing:
(void) - stopCapturing
 Stop forwarding frames to RunManager but continue running.
(void) - stop
 Stop capturing altogether and release resources.
(AVCaptureDevice *) - _deviceWithName:
(void) - _switchToDevice:

Protected Attributes

AVCaptureAudioDataOutput * outputCapturer
AVCaptureSession * session
dispatch_queue_t sampleBufferQueue
uint64_t epoch
BOOL capturing

Properties

NSString * deviceID
 Unique string that identifies the input device.
NSString * deviceName
 Human-readable string that identifies the input device.
IBOutlet id
< RunInputManagerProtocol
manager
IBOutlet NSLevelIndicator * bInputValue

Detailed Description

Class that implements InputCaptureProtocol (and ClockProtocol) for audio input, using AVCapture to capture an audio stream from a microphone or other audio input.


Member Function Documentation

- (NSArray *) deviceNames

List available input devices.

Returns:
List of human-readable device names (as NSString)

Reimplemented from <InputCaptureProtocol>.

- (uint64_t) now

Get current time from this clock.

Returns:
Timevalue in microseconds

Reimplemented from <ClockProtocol>.

- (void) pauseCapturing: (BOOL)  pause

Pause or resume capturer, and release resources.

Parameters:
pauseTrue for pausing, false for resuming

Reimplemented from <InputCaptureProtocol>.

- (void) startCapturing: (BOOL)  showPreview

Start capturing, each captured frame will be forwarded to the InputRunManager

Parameters:
showPreviewSet to true if the capturer should show its preview window (if applicable)

Reimplemented from <InputCaptureProtocol>.

- (BOOL) switchToDeviceWithName: (NSString *)  name

Switch to a different input device.

Parameters:
Nameof the device (as returned by deviceNames)
Returns:
True if succesful

Reimplemented from <InputCaptureProtocol>.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Properties Defines