]> git.sesse.net Git - vlc/commit
mmdevice: use craptastic software gain
authorRémi Denis-Courmont <remi@remlab.net>
Wed, 12 Nov 2014 19:03:13 +0000 (21:03 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Wed, 12 Nov 2014 20:11:48 +0000 (22:11 +0200)
commit5e98fc504ac9c0569ea4d0e00608db7b8088b2dc
tree83bce8c92e4880e0f519dcb2b2ed104c4c851232
parent1433d065983c188499e7357f0bcc624a19db5be1
mmdevice: use craptastic software gain

The same caveats apply as for Windows legacy (and ALSA) outputs:
- Change latency is high and noticeable.
- Change between less than 100% and more than 100% occurs in two steps.
- Non-linear formats are not supported at all.
- Integer formats are prone to clipping/saturation.
- Floating formats may hit Windows peak protection, sounding awful.
In other words, it does not work properly and it never will. This will
be removed once minimum and maximum volumes are exposed properly.

As meager consolation, there are two advantages over endpoint volume:
- The code is much simpler.
- Other audio sessions are not affected.
modules/audio_output/mmdevice.c