summaryrefslogtreecommitdiffstats
path: root/libmpcodecs
diff options
context:
space:
mode:
authorwm4 <wm4@mplayer2.org>2012-03-12 01:46:25 +0100
committerwm4 <wm4@mplayer2.org>2012-03-17 21:06:30 +0100
commitc48c0f453bde933170ec2fa32c8abca1bd650fc6 (patch)
treec8c99f43ab258520d73082e3e94d3c31f39e0d85 /libmpcodecs
parent2f9b14916fc2b4f3e505f0512c16d3a6f0fa30fe (diff)
downloadmpv-c48c0f453bde933170ec2fa32c8abca1bd650fc6.tar.bz2
mpv-c48c0f453bde933170ec2fa32c8abca1bd650fc6.tar.xz
ao_dsound: fix volume controls
The recent changes in mixer.c require the AO to return a volume of exactly 0 when audio has been muted. Rather than adding just another special case to mixer.c, fix ao_dsound.c to return previously set volumes exactly. Because DirectSound volume control is not connected with the system mixer, which could change the volume without mplayer knowing, reading the volume back from DirectSound is pointless. Also, the code tried to calculate log10(0). Clip the volume to 1, which results in -10000, DirectSound's definition of silence.
Diffstat (limited to 'libmpcodecs')
0 files changed, 0 insertions, 0 deletions