> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# sound:apply gain to a signal

**Version: 0.0.0**

## Description

Apply gain on each channel of a signal (fields\_container).  Note: The gain is applied to every channel of the signal.

## Inputs

| Input | Name | Expected type(s) | Description |
| - | - | - | - |
| **Pin 0** Required | input\_signal | [`fields_container`](https://developer.synopsys.com/docs/dpf/dpf-framework/core-concepts/dpf-types#fields-container), [`field`](https://developer.synopsys.com/docs/dpf/dpf-framework/core-concepts/dpf-types#field) | The input signal. |
| **Pin 1** Required | gain | [`double`](https://developer.synopsys.com/docs/dpf/dpf-framework/core-concepts/dpf-types#standard-types) | Gain value in decibels (dB) or linear unit. By default, gain is specified in decibels. If gain is given in a linear unit, set is\_gain\_dB to false. |
| **Pin 2** Required | is\_gain\_dB | [`bool`](https://developer.synopsys.com/docs/dpf/dpf-framework/core-concepts/dpf-types#standard-types) | If value is true, the gain is specified in dB. If value is false, the gain is in a linear unit. |

## Outputs

| Output | Name | Expected type(s) | Description |
| - | - | - | - |
| **Pin 0** | output\_signal | [`fields_container`](https://developer.synopsys.com/docs/dpf/dpf-framework/core-concepts/dpf-types#fields-container), [`field`](https://developer.synopsys.com/docs/dpf/dpf-framework/core-concepts/dpf-types#field) | Signal(s) with the gain applied. The type of the output will be the same as the input on pin 0. For example, a Field as an input will result in a Field for the output. |

## Configurations

| Name | Expected type(s) | Default value | Description |
| - | - | - | - |
| **mutex** | [`bool`](https://developer.synopsys.com/docs/dpf/dpf-framework/core-concepts/dpf-types#standard-types) | false | If this option is set to true, the shared memory is prevented from being simultaneously accessed by multiple threads. |

## Scripting

**Category**: sound

**Plugin**: sound

**Scripting name**: None

**Full name**: None

**Internal name**: apply\_gain

**License**: avrxp\_snd\_level1

## Changelog

* Version 0.0.0: Initial release.
