This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
built_in:audiorecorder [2018/05/20 23:46] geez437 [Methods] |
built_in:audiorecorder [2018/05/21 07:56] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== AudioRecorder control ====== | ====== AudioRecorder control ====== | ||
The AudioRecorder object can be used to listen for sound and record it to a file. | The AudioRecorder object can be used to listen for sound and record it to a file. | ||
- | ===== Create | + | ==== Create ==== |
Create an AudioRecorder object using the CreateAudioRecorder function of the app object: | Create an AudioRecorder object using the CreateAudioRecorder function of the app object: | ||
< | < | ||
Line 16: | Line 16: | ||
- | ===== Methods | + | ==== Methods ==== |
Some controls use the same methods.\\ | Some controls use the same methods.\\ | ||
For examples of the **[[same methods]]** look here. | For examples of the **[[same methods]]** look here. | ||
- | ^ Method | + | ^ Method |
- | | AudioRecorder.GetRMS() | + | | AudioRecorder.GetRMS() |
- | | AudioRecorder.GetType() | + | | AudioRecorder.GetType() |
- | | AudioRecorder.Pause() | + | | AudioRecorder.Pause() |
- | | AudioRecorder.SetFile( p1 ) | + | | AudioRecorder.SetFile( p1 ) | Use the SetFile method to tell the object where to store the sound |
- | | AudioRecorder.Start( p1 ) | + | | AudioRecorder.Start( p1 ) | The Start method tells it to start recording |
- | | AudioRecorder.Stop() | + | | AudioRecorder.Stop() |
==== Example ==== | ==== Example ==== |