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
