◆ initWithSampleRate:frameSize:audioFormat:()
- (id) initWithSampleRate: |
|
(NSInteger) |
sampleRate |
frameSize: |
|
(NSInteger) |
frameSize |
audioFormat: |
|
(AudioCaptureFormat) |
audioFormat |
|
|
| |
Initializes the CjAudioCapture class.
- Parameters
-
sampleRate | Sample 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). |
frameSize | Size of the audio frame. For example if we want to capture 20 ms of 48KHz audio, the corresponding frame size is 960. |
audioFormat | Format of the audio to be played. |
◆ isPaused()
Check if audio capture is paused.
- Returns
- YES if paused, NO otherwise.
◆ 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: