<doc>
  <legacy_id>2309</legacy_id>
  <name>recordCompressionTypes</name>
  <type>function</type>
  <syntax>
    <example>the recordCompressionTypes</example>
    <example>recordCompressionTypes()</example>
  </syntax>
  <library></library>
  <objects>
  </objects>
  <synonyms>
  </synonyms>
  <classification>
    <category>Images &amp; Multimedia</category>
    <category>The System Environment</category>
  </classification>
  <references>
    <command tag="answer record">answer record Command</command>
    <property tag="dontUseQT">dontUseQT Property</property>
    <command tag="record sound">record sound Command</command>
    <property tag="recordCompression">recordCompression Property</property>
  </references>
  <history>
    <introduced version="2.0">Added.</introduced>
  </history>
  <platforms>
    <mac/>
    <windows/>
  </platforms>
  <classes>
    <desktop/>
    <server/>
    <web/>
  </classes>
  <security>
  </security>
  <summary><glossary tag="return">Returns</glossary> a list of audio <glossary tag="codec">codecs</glossary> supported by the currently installed version of <glossary tag="QuickTime">QuickTime</glossary>.</summary>
  <examples>
    <example>the recordCompressionTypes</example>
    <example>if storedType is not among the lines of the recordCompressionTypes \</p><p>   then answer record</example>
  </examples>
  <description>
    <p>Use the <b>recordCompressionTypes</b> <control_st tag="function">function</control_st> to find out which formats you can use to record sound with the <command tag="record sound">record sound</command> <glossary tag="command">command</glossary>.</p><p/><p><b>Value:</b></p><p>The <b>recordCompressionTypes</b> <control_st tag="function">function</control_st> <glossary tag="return">returns</glossary> a list of available audio <glossary tag="codec">codecs</glossary>, one per <keyword tag="line">line</keyword>. Each <keyword tag="line">line</keyword> consists of two <keyword tag="items">items</keyword>:</p><p>        * the codec's name</p><p>        * the codec's four-character identifier</p><p/><p><b>Comments:</b></p><p>You specify a codec by setting the <b>recordCompression</b> <glossary tag="property">property</glossary> to one of the four-<keyword tag="character">character</keyword> identifiers returned by the <b>recordCompressionTypes</b>. The <command tag="record sound">record sound</command> <glossary tag="command">command</glossary> then uses that <glossary tag="codec">codec</glossary> to <function tag="compress">compress</function> recorded sounds. Each <glossary tag="codec">codec</glossary> supports a different type of <glossary tag="compress">compression</glossary>.</p><p/><p>The <b>recordCompressionTypes</b> <control_st tag="function">function</control_st> requires <glossary tag="QuickTime">QuickTime</glossary> to be installed. If <glossary tag="QuickTime">QuickTime</glossary> is not installed, the <b>recordFormats</b> <control_st tag="function">function</control_st> returns empty.</p><p/><p><code/><img src="202651"/> <b>Tip:</b><code/> It can take LiveCode a second or two to load the code needed to use <glossary tag="QuickTime">QuickTime</glossary>, depending on the machine speed. Since this code is only <glossary tag="loaded into memory">loaded into memory</glossary> once per session, you can speed up the first occurrence of a QuickTime-related action by calling the <function tag="QTVersion">QTVersion</function> <control_st tag="function">function</control_st> during otherwise dead time--for example, during startup of your application--to preload the code.</p>
  </description>
</doc>