To start recording audio you create an instance of the
AudioRecorderOptions and call
The options allow you to specify the output file along with audio formats and other recording settings.
Once you have finished recording you call the
stop function to complete the recording.
There are several events that are dispatched at various points through the recording
defined by the
AudioRecorderEvent.START: Dispatched when recording starts
AudioRecorderEvent.COMPLETE: Dispatched when recording completes
AudioRecorderEvent.PROGRESS: Dispatched at periodic intervals while recording
You listen for these events as below:
Example event handler: