# class VolumeFaderEffect

###

Module | phonon
Namespace | Phonon
Class | VolumeFaderEffect
Inherits | Phonon::Effect

\class VolumeFaderEffect volumefadereffect.h Phonon/VolumeFaderEffect Audio effect to gradually fade the audio volume.

This effect differs from gradually changing the output volume in that a dedicated effect can change the volume in the smallest possible steps while every other volume control will make more or less noticeable steps.

Author Matthias Kretz <kretz@kde.org>

See also AudioOutput.volume

### enums

- FadeCurve { Fade3Decibel, Fade6Decibel, Fade9Decibel, Fade12Decibel }

enum details

### methods

- fadeCurve ( )

  returns Phonon::VolumeFaderEffect.FadeCurve

- fadeIn (fadeTime)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  fadeTime | int |

  Tells the Fader to change the volume from the current volume to 100% in fadeTime milliseconds. Short for fadeTo(1.0, fadeTime).

  fadeTime - the fade duration in milliseconds

  See also fadeTo

  See also volume

- fadeOut (fadeTime)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  fadeTime | int |

  Tells the Fader to change the volume from the current volume to 0% in fadeTime milliseconds. Short for fadeTo(0.0, fadeTime).

  fadeTime - the fade duration in milliseconds

  See also fadeTo

- fadeTo (volume, fadeTime)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  volume | float |
  fadeTime | int |

  Tells the Fader to change the volume from the current value to volume in fadeTime milliseconds

  See also fadeIn

  See also fadeOut

- setFadeCurve (curve)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  curve | Phonon::VolumeFaderEffect.FadeCurve |

- setVolume (volume)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  volume | float |

- setVolumeDecibel (volumeDecibel)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  volumeDecibel | double |

- volume ( )

  returns float

  more extreme version of the -9dB fade

- volumeDecibel ( )

  returns double

### enums - detail

- FadeCurve { Fade3Decibel, Fade6Decibel, Fade9Decibel, Fade12Decibel }

  "Crossfade curve" / "fast" fade out

  Often the best fade for a crossfade, as after half of the time the volume reached -3dB. This means that half the possible power (which is proportional to the square of the voltage) is reached. Summed, the maximum power of two audio signals fading with a -3dB curve will always be equal.

  For fading in or out the -3dB curve is too abrupt in the end.

  This is the default fade curve.

  | Fade3Decibel | - | - |
  | Fade6Decibel | - | - |
  | Fade9Decibel | - | - |
  | Fade12Decibel | - | - |