Skip to content
  • Volker Rümelin's avatar
    4218fdd7
    audio: change mixing engine float range to [-1.f, 1.f] · 4218fdd7
    Volker Rümelin authored
    
    
    Currently the internal float range of the mixing engine is
    [-.5f, .5f]. PulseAudio, SDL2 and libasound use a [-1.f, 1.f]
    range. This means with float samples the audio playback volume
    is 6dB too low and audio recording signals will be clipped in
    most cases.
    
    To avoid another scaling factor in the conv_natural_float_* and
    clip_natural_float_* functions with FLOAT_MIXENG defined this
    patch changes the mixing engine float range to [-1.f, 1.f].
    
    Signed-off-by: default avatarVolker Rümelin <vr_qemu@t-online.de>
    Message-id: 20200308193321.20668-4-vr_qemu@t-online.de
    Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
    4218fdd7
    audio: change mixing engine float range to [-1.f, 1.f]
    Volker Rümelin authored
    
    
    Currently the internal float range of the mixing engine is
    [-.5f, .5f]. PulseAudio, SDL2 and libasound use a [-1.f, 1.f]
    range. This means with float samples the audio playback volume
    is 6dB too low and audio recording signals will be clipped in
    most cases.
    
    To avoid another scaling factor in the conv_natural_float_* and
    clip_natural_float_* functions with FLOAT_MIXENG defined this
    patch changes the mixing engine float range to [-1.f, 1.f].
    
    Signed-off-by: default avatarVolker Rümelin <vr_qemu@t-online.de>
    Message-id: 20200308193321.20668-4-vr_qemu@t-online.de
    Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
Loading