# Live Stream V1 API - Class Google::Cloud::Video::LiveStream::V1::AudioStream::AudioMapping (v2.7.0)

2.7.0 (latest) 2.6.0 2.5.1 2.4.0 2.3.0 2.2.0 2.1.0 2.0.1 1.3.0 1.2.0 1.1.1 1.0.0 0.9.0 0.8.2 0.7.0 0.6.0 0.5.1 0.4.0 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Live Stream V1 API class Google::Cloud::Video::LiveStream::V1::AudioStream::AudioMapping.

The mapping for the input streams and audio channels.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #gain_db

    def gain_db() -> ::Float

**Returns**

- (::Float) --- Audio volume control in dB. Negative values decrease volume, positive values increase. The default is 0.

### #gain_db=

    def gain_db=(value) -> ::Float

**Parameter**

- **value** (::Float) --- Audio volume control in dB. Negative values decrease volume, positive values increase. The default is 0.
**Returns**

- (::Float) --- Audio volume control in dB. Negative values decrease volume, positive values increase. The default is 0.

### #input_channel

    def input_channel() -> ::Integer

**Returns**

- (::Integer) --- Required. The zero-based index of the channel in the input stream.

### #input_channel=

    def input_channel=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- Required. The zero-based index of the channel in the input stream.
**Returns**

- (::Integer) --- Required. The zero-based index of the channel in the input stream.

### #input_key

    def input_key() -> ::String

**Returns**

- (::String) --- Required. The `Channel` [InputAttachment.key](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Cloud-Video-LiveStream-V1-InputAttachment#Google__Cloud__Video__LiveStream__V1__InputAttachment_key_instance_ "Google::Cloud::Video::LiveStream::V1::InputAttachment#key (method)") that identifies the input that this audio mapping applies to. If an active input doesn't have an audio mapping, the primary audio track in the input stream will be selected.

### #input_key=

    def input_key=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The `Channel` [InputAttachment.key](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Cloud-Video-LiveStream-V1-InputAttachment#Google__Cloud__Video__LiveStream__V1__InputAttachment_key_instance_ "Google::Cloud::Video::LiveStream::V1::InputAttachment#key (method)") that identifies the input that this audio mapping applies to. If an active input doesn't have an audio mapping, the primary audio track in the input stream will be selected.
**Returns**

- (::String) --- Required. The `Channel` [InputAttachment.key](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Cloud-Video-LiveStream-V1-InputAttachment#Google__Cloud__Video__LiveStream__V1__InputAttachment_key_instance_ "Google::Cloud::Video::LiveStream::V1::InputAttachment#key (method)") that identifies the input that this audio mapping applies to. If an active input doesn't have an audio mapping, the primary audio track in the input stream will be selected.

### #input_track

    def input_track() -> ::Integer

**Returns**

- (::Integer) --- Required. The zero-based index of the track in the input stream. All {::Google::Cloud::Video::LiveStream::V1::AudioStream#mapping mapping}s in the same [AudioStream](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Cloud-Video-LiveStream-V1-AudioStream "Google::Cloud::Video::LiveStream::V1::AudioStream (class)") must have the same input track.

### #input_track=

    def input_track=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- Required. The zero-based index of the track in the input stream. All {::Google::Cloud::Video::LiveStream::V1::AudioStream#mapping mapping}s in the same [AudioStream](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Cloud-Video-LiveStream-V1-AudioStream "Google::Cloud::Video::LiveStream::V1::AudioStream (class)") must have the same input track.
**Returns**

- (::Integer) --- Required. The zero-based index of the track in the input stream. All {::Google::Cloud::Video::LiveStream::V1::AudioStream#mapping mapping}s in the same [AudioStream](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Cloud-Video-LiveStream-V1-AudioStream "Google::Cloud::Video::LiveStream::V1::AudioStream (class)") must have the same input track.

### #output_channel

    def output_channel() -> ::Integer

**Returns**

- (::Integer) --- Required. The zero-based index of the channel in the output audio stream. Must be consistent with the [input_channel](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Cloud-Video-LiveStream-V1-AudioStream-AudioMapping#Google__Cloud__Video__LiveStream__V1__AudioStream__AudioMapping_input_channel_instance_ "Google::Cloud::Video::LiveStream::V1::AudioStream::AudioMapping#input_channel (method)").

### #output_channel=

    def output_channel=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- Required. The zero-based index of the channel in the output audio stream. Must be consistent with the [input_channel](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Cloud-Video-LiveStream-V1-AudioStream-AudioMapping#Google__Cloud__Video__LiveStream__V1__AudioStream__AudioMapping_input_channel_instance_ "Google::Cloud::Video::LiveStream::V1::AudioStream::AudioMapping#input_channel (method)").
**Returns**

- (::Integer) --- Required. The zero-based index of the channel in the output audio stream. Must be consistent with the [input_channel](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Cloud-Video-LiveStream-V1-AudioStream-AudioMapping#Google__Cloud__Video__LiveStream__V1__AudioStream__AudioMapping_input_channel_instance_ "Google::Cloud::Video::LiveStream::V1::AudioStream::AudioMapping#input_channel (method)").