recordCompressionTypes

Typefunction
DictionaryLCS
LibraryLiveCode Script
Syntax
the recordCompressionTypes
recordCompressionTypes()
Summary

Returns a list of audio codecs supported by the currently installed version of QuickTime.

Introduced2.0
Changes

The use of QuickTime was deprecated in version 8.1 of LiveCode with new defaults for dontUseQT and dontUseQTEffects as true on all systems apart from pre OS X 10.8. The Windows build of LiveCode no longer supports any QuickTime features and setting the dontUseQT and dontUseQTEffects will have no effect. Additionally QuickTime does not include 64 bit support and therefore can not be supported on OS X 64 bit builds of LiveCode.

OSmac
Platformsdesktop
Example
the recordCompressionTypes
if storedType is not among the lines of the recordCompressionTypes \
   then answer record
Values
NameTypeDescription
return

The recordCompressionTypes function returns a list of available audio codecs, one per line. Each line consists of two items : - the codec's name - the codec's four-character identifier

RelatedKeyword: items, character, line
Property: dontUseQT, dontUseQTEffects, recordCompression
Command: answer record, record sound
Function: compress, qtVersion
Control Structure: function
Glossary: property, loaded into memory, return, compress, QuickTime, command, codec
Description

Use the recordCompressionTypes function to find out which formats you can use to record sound with the record sound command.

You specify a codec by setting the recordCompression property to one of the four- character identifiers returned by the recordCompressionTypes. The record sound command then uses that codec to compress recorded sounds. Each codec supports a different type of compression.

The recordCompressionTypes function requires QuickTime to be installed. If QuickTime is not installed, the recordFormats function returns empty.

Tip: It can take LiveCode a second or two to load the code needed to use QuickTime, depending on the machine speed. Since this code is only loaded into memory once per session, you can speed up the first occurrence of a QuickTime-related action by calling the QTVersion function during otherwise dead time--for example, during startup of your application--to preload the code.

Tagsmultimedia