/** * Audio utility helper class * * Based on info from * https://www.vmix.com/knowledgebase/article.aspx/144/vmix-api-audio-levels */ export default class AudioUtility { /** * Value to hold internally in class */ protected _amplitudeValue: number; /** * Audio utility class * @param fromType * @param {number} value */ constructor(fromType: 'amplitude' | 'meterF' | 'volume' | 'volumeBar', value: number); /** * Smart-constructor: from Amplitude **/ static fromAmplitude(value: number): AudioUtility; /** * Smart-constructor: from Meter F **/ static fromMeterF(value: number): AudioUtility; /** * Smart-constructor: from Volume **/ static fromVolume(value: number): AudioUtility; /** * Smart-constructor: from Volume bar **/ static fromVolumeBar(value: number): AudioUtility; /** * Methods for fetching value in a specific format **/ /** * Return amplitude * Value is between 0.0 and 1.0 * * @returns {number} */ amplitude(): number; /** * Return volume value (in dB) * @returns {number} */ volume(): number; /** * Return volume bar * Value is in percentage (between 0% and 100%) * @returns {number} */ volumeBar(): number; } //# sourceMappingURL=audio-utility.d.ts.map