# Google Cloud Video Transcoder V1 Client - Class AudioMapping (1.4.0)

1.4.0 (latest) 1.3.2 1.2.0 1.1.0 1.0.3 0.10.5 0.9.1 0.8.2 0.7.1 0.6.0 0.5.3 Reference documentation and code samples for the Google Cloud Video Transcoder V1 Client class AudioMapping.

The mapping for the
[JobConfig.edit_list](https://docs.cloud.google.com/php/docs/reference/cloud-video-transcoder/latest/V1.JobConfig#_Google_Cloud_Video_Transcoder_V1_JobConfig__getEditList__)
atoms with audio
[EditAtom.inputs](https://docs.cloud.google.com/php/docs/reference/cloud-video-transcoder/latest/V1.EditAtom#_Google_Cloud_Video_Transcoder_V1_EditAtom__getInputs__).

Generated from protobuf message `google.cloud.video.transcoder.v1.AudioStream.AudioMapping`

## Namespace

Google \\ Cloud \\ Video \\ Transcoder \\ V1 \\ AudioStream

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ atom_key` | `string` Required. The [EditAtom.key](https://docs.cloud.google.com/php/docs/reference/cloud-video-transcoder/latest/V1.EditAtom#_Google_Cloud_Video_Transcoder_V1_EditAtom__getKey__) that references the atom with audio inputs in the [JobConfig.edit_list](https://docs.cloud.google.com/php/docs/reference/cloud-video-transcoder/latest/V1.JobConfig#_Google_Cloud_Video_Transcoder_V1_JobConfig__getEditList__). |
| `↳ input_key` | `string` Required. The [Input.key](https://docs.cloud.google.com/php/docs/reference/cloud-video-transcoder/latest/V1.Input#_Google_Cloud_Video_Transcoder_V1_Input__getKey__) that identifies the input file. |
| `↳ input_track` | `int` Required. The zero-based index of the track in the input file. |
| `↳ input_channel` | `int` Required. The zero-based index of the channel in the input audio stream. |
| `↳ output_channel` | `int` Required. The zero-based index of the channel in the output audio stream. |
| `↳ gain_db` | `float` Audio volume control in dB. Negative values decrease volume, positive values increase. The default is 0. |

### getAtomKey

Required. The
[EditAtom.key](https://docs.cloud.google.com/php/docs/reference/cloud-video-transcoder/latest/V1.EditAtom#_Google_Cloud_Video_Transcoder_V1_EditAtom__getKey__) that
references the atom with audio inputs in the
[JobConfig.edit_list](https://docs.cloud.google.com/php/docs/reference/cloud-video-transcoder/latest/V1.JobConfig#_Google_Cloud_Video_Transcoder_V1_JobConfig__getEditList__).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setAtomKey

Required. The
[EditAtom.key](https://docs.cloud.google.com/php/docs/reference/cloud-video-transcoder/latest/V1.EditAtom#_Google_Cloud_Video_Transcoder_V1_EditAtom__getKey__) that
references the atom with audio inputs in the
[JobConfig.edit_list](https://docs.cloud.google.com/php/docs/reference/cloud-video-transcoder/latest/V1.JobConfig#_Google_Cloud_Video_Transcoder_V1_JobConfig__getEditList__).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getInputKey

Required. The [Input.key](https://docs.cloud.google.com/php/docs/reference/cloud-video-transcoder/latest/V1.Input#_Google_Cloud_Video_Transcoder_V1_Input__getKey__)
that identifies the input file.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setInputKey

Required. The [Input.key](https://docs.cloud.google.com/php/docs/reference/cloud-video-transcoder/latest/V1.Input#_Google_Cloud_Video_Transcoder_V1_Input__getKey__)
that identifies the input file.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getInputTrack

Required. The zero-based index of the track in the input file.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setInputTrack

Required. The zero-based index of the track in the input file.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getInputChannel

Required. The zero-based index of the channel in the input audio stream.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setInputChannel

Required. The zero-based index of the channel in the input audio stream.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getOutputChannel

Required. The zero-based index of the channel in the output audio stream.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setOutputChannel

Required. The zero-based index of the channel in the output audio stream.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getGainDb

Audio volume control in dB. Negative values decrease volume,
positive values increase. The default is 0.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `float` |   |

### setGainDb

Audio volume control in dB. Negative values decrease volume,
positive values increase. The default is 0.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `float` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |