Next: , Up: Audio Recorder   [Contents][Index]


33.4.1 Recording

The following methods control the recording process.

Function File: record (recorder)
Function File: record (recorder, length)

Record audio without blocking using the audiorecorder object recorder until stopped or paused by the stop or pause method.

Given the optional argument length, record for length seconds.

Function File: recordblocking (recorder, length)

Record audio with blocking (synchronous I/O).

The length of the recording in seconds (length) must be specified.

Function File: pause (recorder)

Pause recording with audiorecorder object recorder.

Function File: resume (recorder)

Resume recording with the paused audiorecorder object recorder.

Function File: stop (recorder)

Stop the audiorecorder object recorder and clean up any audio streams.

Function File: isrecording (recorder)

Return true if the audiorecorder object recorder is currently recording audio and false otherwise.