forked from livecode/livecode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathanswer-record.lcdoc
More file actions
34 lines (19 loc) · 1.87 KB
/
answer-record.lcdoc
File metadata and controls
34 lines (19 loc) · 1.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Name: answer record
Type: command
Syntax: answer record
Summary: Displays the <QuickTime> sound-recording settings <dialog box>.
Introduced: 2.0
OS: mac,windows
Platforms: desktop
Security: privacy
Example:
answer record
Example:
if the alreadyHaveSettings of this card is false then answer record
The result: If the user cancels the dialog, the result <function> <return|returns> "Cancel", and the recording-related <properties> are unchanged. If the dontUseQT <property> is set to true, the <answer record> <command> cannot be used, and the <result> <return|returns> "could not initialize quicktime".
Description:
Use the <answer record> <command> to specify settings for use with the <record sound> <command>.
The <answer record> <command> displays a <dialog box> where the user can select a sound compression format, rate, sampling rate, and whether to record in mono or stereo. Depending on the compression format, other options may also be offered. (This <dialog box> is displayed by <QuickTime>, not by LiveCode.) The settings the user chooses will be used the next time the <record sound> <command> is used.
The <answer record> <command> sets the <recordCompression>, <recordRate>, <recordSampleSize>, and <recordChannels> <properties> in accordance with the settings chosen in the <dialog box>. To save the settings you choose in the <dialog box> and use them later without re-displaying the <dialog box|dialog>, save the values of these <properties>, then restore them when you want to record sound.
References: recordCompression (property), recordSampleSize (property), recordChannels (property), properties (property), recordRate (property), answer effect (command), record sound (command), result (function), recordCompressionTypes (function), property (glossary), dialog box (glossary), command (glossary), QuickTime (glossary), return (glossary), function (control_st)
Tags: multimedia