# Add automatic-volume to legacy \(\#51919\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/ee94afa0437c60c56a070c517ae999f7ccb4abf0)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: ee94afa0437c60c56a070c517ae999f7ccb4abf0

Requested commit: ee94afa0437c60c56a070c517ae999f7ccb4abf0

Commit: ee94afa0437c60c56a070c517ae999f7ccb4abf0

Tree: a58d94102ac87e3311f74da8fcbc1dc8721a37d9

Author: Yara 🏳️‍⚧️

Committer: GitHub

## Message

```
Add automatic-volume to legacy (#51919)

## Context

This allows using of Rodio's effects library within our home brewn audio
pipeline. The alternative would be inlining Rodio's effects which is
problematic from a legal stance. We would then have to make clear that
code is not owned by zed-industries while the code would be surrounded
by zed-industries owned code.

This adaptor does incur a slight performance penalty (copying into a
pre-allocated vec and back) however the impact will be immeasurably low.

There is no latency impact.

## How to Review

- Adds an adapter for Rodio effects
- Enables the adapter and effects only when the setting is enabled
-Makes the setting pub(crate) so we can use it from livekit playback

## Self-Review Checklist

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [ ] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Release Notes:

- Added Automatic volume control to calls
```

## Parents

- [09b038831235ee38f84d235cdba53452c3a29535](https://git.cafe/gitcafe/zed/commit/09b038831235ee38f84d235cdba53452c3a29535?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/ee94afa0437c60c56a070c517ae999f7ccb4abf0?format=markdown)
