/**
* @description Controls the volume of an audio or video file.
* @namespace Volume
* @memberOf Qualifiers
* @see Visit {@link Actions.VideoEdit.concatenate|VideoEdit.concatenate} for an example
*/
/**
* @summary qualifier
* @description Mutes the volume.
*
* You can use this on the base video to deliver a video without sound, or with a video overlay
* to ensure that only the sound from the base video plays.
*
* @memberOf Qualifiers.Volume
* @return string
*/
function mute(): string{
return 'mute';
}
/**
* @summary qualifier
* @description Increases or decreases the volume by a percentage of the current volume.
*
* @memberOf Qualifiers.Volume
* @param {string|number} percent The percentage change of volume (Range: -100 to 400).
* @return string
*/
function byPercent(percent: string|number): string {
return `${percent}`;
}
/**
* @summary qualifier
* @description Increases or decreases the volume by the specified number of decibels.
*
* @memberOf Qualifiers.Volume
* @param {string|number} decibel The offset in dB.
* @return string
*/
function byDecibels(decibel: string|number): string {
return `${decibel}db`;
}
const Volume = {mute, byPercent, byDecibels};
export {Volume, mute, byPercent, byDecibels};