NTMicrophoneAudioSource Class Reference

Inherits from NTAudioSource : NSObject
Declared in NTMicrophoneAudioSource.h
NTMicrophoneAudioSource.m

Overview

Audio source that reads data from default input device.

Other Methods

– init

- (instancetype)init

– initWithFormat:

Create a source with the given format.

- (instancetype)initWithFormat:(AudioStreamBasicDescription)format

Parameters

format

Format

Return Value

instance

Discussion

Create a source with the given format.

Declared In

NTAudioSource.h

– dealloc

- (void)dealloc

– start

Start producing audio.

- (BOOL)start

Return Value

YES on success, NO otherwise

Discussion

Start producing audio.

Declared In

NTAudioSource.h

– stop

Stop producing audio.

- (BOOL)stop

Return Value

YES on success, NO otherwise

Discussion

Stop producing audio.

Declared In

NTAudioSource.h

– suspend

Suspend producing audio.

- (BOOL)suspend

Return Value

YES on success, NO otherwise

Discussion

Suspend producing audio.

Declared In

NTAudioSource.h

– resume

Resume producing audio.

- (BOOL)resume

Return Value

YES on success, NO otherwise

Discussion

Resume producing audio.

Declared In

NTAudioSource.h

– setupQueue

- (BOOL)setupQueue

– deriveBufferSizeForSeconds:

- (void)deriveBufferSizeForSeconds:(double)seconds

– initializeBuffers

- (BOOL)initializeBuffers

– checkOSStatus:message:

- (BOOL)checkOSStatus:(OSStatus)status message:(NSString *)message

Extension Methods

  audioQueue

@property (nonatomic) AudioQueueRef audioQueue

  audioQueueBuffers

@property (nonatomic) AudioQueueBufferRef *audioQueueBuffers

  numberOfBuffers

@property (nonatomic) int numberOfBuffers

  bufferSizeBytes

@property (nonatomic) UInt32 bufferSizeBytes