[vlc-devel] Re: vlc: svn commit r11824 (ipkiss)

Christophe Massiot massiot at via.ecp.fr
Sun Jul 24 03:24:22 CEST 2005


At 21:48 +0200 23/07/05, Olivier Teulière wrote:
>On Sat, Jul 23, 2005, Subversion daemon wrote:
>>   * skins2: use AOUT_VOLUME_MAX / 2 instead of AOUT_VOLUME_MAX, for the
>>   maximum volume.
>
>This change was done to be homogeneous with the other interfaces, but i
>think it's not logical to allow values only up to AOUT_VOLUME_MAX / 2,
>while in the preferences we can set the volume to AOUT_VOLUME_MAX.
>
>I was given the following rationale:
>from 0 to AOUT_VOLUME_MAX / 2 the volume of the input stream is lowered,
>and from AOUT_VOLUME_MAX / 2 + 1 to AOUT_VOLUME_MAX, the volume of the
>input stream is amplified, potentially causing distortions. To avoid
>these distortions, interfaces prevent amplifying the volume. But the
>user can still set it in the preferences if she wants a higher volume.

Not quite :

#define AOUT_VOLUME_DEFAULT             256
#define AOUT_VOLUME_STEP                32
#define AOUT_VOLUME_MAX                 1024
#define AOUT_VOLUME_MIN                 0

The "normal" unaltered volume is 256. Anything above 256 may 
saturate. That's AOUT_VOLUME_MAX / 4.

-- 
Christophe Massiot.

-- 
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html



More information about the vlc-devel mailing list