Skip to main content
Skip table of contents

CalculateTableAudioFormat

CalculateTableAudioFormat matches an audio format against allowed (and default) audio formats specified for a DigaSystem table. It returns a string array of target formats (when a conversion is required) or an empty string array (if no conversion is required). Audio formats are specified in Audio32 section string format.

Note: the activity caches system configuration, changes in table or audio template configuration will not be immediately visible/applied.

Properties


Input

NameDescription

SourceAudioFormat


Audio32 section string describing the audio format to be matched again allowed (and default) format of a DigaSystem table.

Example:

CODE
[FILETYPE]RAW[FORMAT]MPEG-LAYER3[BITRATE]64[MODE]STEREO

TableId


Table ID string specifying a DigaSystem table. A table specification can contain allowed and default audio templates.

Example:


Output

NameDescription

TargetAudioFormats


Returns empty string array when no conversion is required.

When a conversion is required it returns a string array containing Audio32 section strings. The first element is the recommended conversion (according to allowed and default settings). The other elements are alternative conversions to match one of the allowed audio templates.

Example output (for the above input examples):

CODE
[FILETYPE]WAV[FORMAT]LINEAR[SAMPLERATE]48000[RESOLUTION]16[MODE]STEREO
[FILETYPE]WAV[FORMAT]LINEAR[SAMPLERATE]44100[RESOLUTION]16[MODE]STEREO




JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.