<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/video/livestream/v1/outputs.proto

namespace Google\Cloud\Video\LiveStream\V1\PreprocessingConfig;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

/**
 * Audio preprocessing configuration.
 *
 * Generated from protobuf message <code>google.cloud.video.livestream.v1.PreprocessingConfig.Audio</code>
 */
class Audio extends \Google\Protobuf\Internal\Message
{
    /**
     * Specify audio loudness normalization in loudness units relative to full
     * scale (LUFS). Enter a value between -24 and 0 according to the following:
     * - -24 is the Advanced Television Systems Committee (ATSC A/85)
     * - -23 is the EU R128 broadcast standard
     * - -19 is the prior standard for online mono audio
     * - -18 is the ReplayGain standard
     * - -16 is the prior standard for stereo audio
     * - -14 is the new online audio standard recommended by Spotify, as well as
     * Amazon Echo
     * - 0 disables normalization. The default is 0.
     *
     * Generated from protobuf field <code>double lufs = 1;</code>
     */
    private $lufs = 0.0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type float $lufs
     *           Specify audio loudness normalization in loudness units relative to full
     *           scale (LUFS). Enter a value between -24 and 0 according to the following:
     *           - -24 is the Advanced Television Systems Committee (ATSC A/85)
     *           - -23 is the EU R128 broadcast standard
     *           - -19 is the prior standard for online mono audio
     *           - -18 is the ReplayGain standard
     *           - -16 is the prior standard for stereo audio
     *           - -14 is the new online audio standard recommended by Spotify, as well as
     *           Amazon Echo
     *           - 0 disables normalization. The default is 0.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Video\Livestream\V1\Outputs::initOnce();
        parent::__construct($data);
    }

    /**
     * Specify audio loudness normalization in loudness units relative to full
     * scale (LUFS). Enter a value between -24 and 0 according to the following:
     * - -24 is the Advanced Television Systems Committee (ATSC A/85)
     * - -23 is the EU R128 broadcast standard
     * - -19 is the prior standard for online mono audio
     * - -18 is the ReplayGain standard
     * - -16 is the prior standard for stereo audio
     * - -14 is the new online audio standard recommended by Spotify, as well as
     * Amazon Echo
     * - 0 disables normalization. The default is 0.
     *
     * Generated from protobuf field <code>double lufs = 1;</code>
     * @return float
     */
    public function getLufs()
    {
        return $this->lufs;
    }

    /**
     * Specify audio loudness normalization in loudness units relative to full
     * scale (LUFS). Enter a value between -24 and 0 according to the following:
     * - -24 is the Advanced Television Systems Committee (ATSC A/85)
     * - -23 is the EU R128 broadcast standard
     * - -19 is the prior standard for online mono audio
     * - -18 is the ReplayGain standard
     * - -16 is the prior standard for stereo audio
     * - -14 is the new online audio standard recommended by Spotify, as well as
     * Amazon Echo
     * - 0 disables normalization. The default is 0.
     *
     * Generated from protobuf field <code>double lufs = 1;</code>
     * @param float $var
     * @return $this
     */
    public function setLufs($var)
    {
        GPBUtil::checkDouble($var);
        $this->lufs = $var;

        return $this;
    }

}


