<doc>
  <legacy_id>2048</legacy_id>
  <name>answer record</name>
  <type>command</type>
  <syntax>
    <example>answer record</example>
  </syntax>
  <library></library>
  <objects>
  </objects>
  <synonyms>
  </synonyms>
  <classification>
    <category>Windows &amp; Dialog Boxes</category>
    <category>Images &amp; Multimedia</category>
  </classification>
  <references>
    <command tag="answer effect">answer effect Command</command>
    <function tag="recordCompressionTypes">recordCompressionTypes Function</function>
    <property tag="recordSampleSize">recordSampleSize Property</property>
    <property tag="recordChannels">recordChannels Property</property>
  </references>
  <history>
    <introduced version="2.0">Added.</introduced>
  </history>
  <platforms>
    <mac/>
    <windows/>
  </platforms>
  <classes>
    <desktop/>
  </classes>
  <security>
    <privacy/>
  </security>
  <summary>Displays the <glossary tag="QuickTime">QuickTime</glossary> sound-recording settings <glossary tag="dialog box">dialog box</glossary>.</summary>
  <examples>
    <example>answer record</example>
    <example>if the alreadyHaveSettings of this card is false then answer record</example>
  </examples>
  <description>
    <p>Use the <b>answer record</b> <glossary tag="command">command</glossary> to specify settings for use with the <command tag="record sound">record sound</command> <glossary tag="command">command</glossary>.</p><p/><p><b>Comments:</b></p><p>The <b>answer record</b> <glossary tag="command">command</glossary> displays a <glossary tag="dialog box">dialog box</glossary> 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 <glossary tag="dialog box">dialog box</glossary> is displayed by <glossary tag="QuickTime">QuickTime</glossary>, not by LiveCode.) The settings the user chooses will be used the next time the <command tag="record sound">record sound</command> <glossary tag="command">command</glossary> is used.</p><p/><p>The <b>answer record</b> <glossary tag="command">command</glossary> sets the <property tag="recordCompression">recordCompression</property>, <property tag="recordRate">recordRate</property>, <property tag="recordSampleSize">recordSampleSize</property>, and <property tag="recordChannels">recordChannels</property> <property tag="properties">properties</property> in accordance with the settings chosen in the <glossary tag="dialog box">dialog box</glossary>. To save the settings you choose in the <glossary tag="dialog box">dialog box</glossary> and use them later without re-displaying the <glossary tag="dialog box">dialog</glossary>, save the values of these <property tag="properties">properties</property>, then restore them when you want to record sound.</p><p/><p>If the user cancels the dialog, the <b>result</b> <control_st tag="function">function</control_st> <glossary tag="return">returns</glossary> "Cancel", and the recording-related <property tag="properties">properties</property> are unchanged.</p><p/><p>If the <b>dontUseQT</b> <glossary tag="property">property</glossary> is set to true, the <b>answer record</b> <glossary tag="command">command</glossary> cannot be used, and the <function tag="result">result</function> <glossary tag="return">returns</glossary> "could not initialize quicktime".</p>
  </description>
</doc>