DPE Web Applications 2.x

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.

CalculateTableAudioFormat.png

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

Properties

CalculateTableAudioFormat_Properties.png


Input

Name

Description

SourceAudioFormat


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

Example:

[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:

CalculateTableAudioFormat_TableId.png


Output

Name

Description

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):

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