recordCompression

Typeproperty
DictionaryLCS
LibraryLiveCode Script
Syntax
set the recordCompression to <codecName>
Summary

Specifies which codec is used to compress recorded sounds.

Introduced2.0
OSmac, windows
Platformsdesktop, server
Example
set the recordCompression to "MAC6"
if the recordCompression is "raw " then requestAnotherType
Values
NameTypeDescription
Value

The recordCompression is a four-character string. By default, the recordCompression property is "raw ".

RelatedKeyword: default
Property: recordFormat, recordSampleSize
Command: answer record, record sound
Function: compress, format, recordCompressionTypes
Control Structure: function
Glossary: property, dialog box, command, QuickTime, codec, compress
Description

Use the recordCompression property to trade off between sound quality and disk space when you record a sound.

The recordCompression property determines what kind of compression is used when you use the record sound command to record sound to a file.

Not all codecs are compatible with all supported sound file formats. If you try to record sound using a recordCompression that is not compatible with the file format specified by the recordFormat property, the compression type will be changed automatically to a codec that is compatible with the specified recordFormat.

The codecs are installed by QuickTime. You can obtain a list of available codecs using the recordCompressionTypes function. The default setting, "raw " (note the trailing space), indicates no compression will be used.

Note: The answer record command sets the recordCompression property according to what the user chose in the answer record dialog box.