CjAudioCapture
Instance Methods | Properties | List of all members
CjAudioCapture Class Reference
Inheritance diagram for CjAudioCapture:

Instance Methods

(id) - initWithSampleRate:frameSize:audioFormat:
 Initializes the CjAudioCapture class. More...
 
(void) - start
 Start capturing the audio.
 
(void) - stop
 Stop capturing the audio.
 
(void) - pause
 Pause capturing the audio. More...
 
(void) - resume
 Resume capturing the audio.
 
(BOOL) - isPaused
 Check if audio capture is paused. More...
 
(void) - deinit
 Deinitializes the CjAudioCapture class.
 

Properties

id< CjAudioCaptureDelegatedelegate
 

Method Documentation

◆ initWithSampleRate:frameSize:audioFormat:()

- (id) initWithSampleRate: (NSInteger)  sampleRate
frameSize: (NSInteger)  frameSize
audioFormat: (AudioCaptureFormat audioFormat 

Initializes the CjAudioCapture class.

Parameters
sampleRateSample rate of the audio being captured. The recommendation is to use the native sample rate of the microphone in order to minimize CPU usage (48000 for iPhone).
frameSizeSize of the audio frame. For example if we want to capture 20 ms of 48KHz audio, the corresponding frame size is 960.
audioFormatFormat of the audio to be played.

◆ isPaused()

- (BOOL) isPaused

Check if audio capture is paused.

Returns
YES if paused, NO otherwise.

◆ pause()

- (void) pause

Pause capturing the audio.

When pausing, the library is still capturing audio frames but not calling the delegate. Use pause/resume instead of start/stop when instant resumption of getting frames is necessary as starting and stopping can take a little bit of time.


The documentation for this class was generated from the following file: