Media_Set ( tag { ; value } )
The Media_Set function allows you to control the Media_InsertQuickTime function’s interaction with QuickTime. MediaManager uses a couple of workarounds to sidestep some known bugs in QuickTime.
Parameter | Description |
---|---|
tag | one of several values: “Volume”, “Tempo”, “Balance”, “lmworkaround”, “rfworkaround”. |
value | (see below). |
Both workarounds are set to being “on” by default – and under most circumstances you will want them to remain on. These workarounds exist primarily for circumstances when you may want to turn them off, especially if QuickTime eventually fixes the bugs and you want to rely on the standard QT process.
Examples
Volume
Sets the playback volume for Media_PlaySound.
Set Field [ MyTable::Result ; Media_Set ( "Volume" ; value ) ]
1 = normal playback volume
Setting the volume to greater than 1, such as “5”, will result in a louder playback. A volume of less than one, such as “.7”, gives a quieter playback result.
Tempo
Sets the tempo or audio speed of the Media_PlaySound playback.
Set Field [ MyTable::Result ; Media_Set ( "Tempo" ; value ) ]
1 = normal playback speed
A tempo of less than one, such as “.5”, gives a slower playback speed. A tempo greater than one, such as “2”, will result in a faster playback speed.
To reverse playback, set the tempo to a negative value.
Balance
This value sets the balance between left and right audio channels during Media_PlaySound playback.
Set Field [ MyTable::Result ; Media_Set (“Balance” ; balanceValue ) ]
- 0 = equal balance
- -1 = full left channel
- 1 = full right channel
The balanceValue parameter should be a number between -1 and 1.
LogLevel
This value sets how much certain MediaManager functions log into a log file. LevelValue is a numerical value where 0 means to log emergency events only while 7 means log almost everything. The value of 7 is used for debugging purposes only. Currently only Media_GetMetadata and Media_SetMetadata use this functionality.
Set Field [ MyTable::Result ; Media_Set (“LogLevel” ; levelValue ) ]
lmworkaround, rfworkaround
Deprecated. For backward compatibility only. Deprecated. For backward compatibility only. These tags are no longer necessary and their values are ignored.