README-SDL.txt
author Sam Lantinga <slouken@libsdl.org>
Sun, 07 Jul 2019 09:10:56 -0700
changeset 12928 3c4a4b1077cd
parent 10892 996c14d41c46
permissions -rw-r--r--
Fixed bug 4710 - audio/alsa: avoid configuring hardware parameters with only a single period

Anthony Pesch

The previous code first configured the period size using snd_pcm_hw_par-
ams_set_period_size_near. Then, it further narrowed the configuration
space by calling snd_pcm_hw_params_set_buffer_size_near using a buffer
size of 2 times the _requested_ period size in order to try and get a
configuration with only 2 periods. If the configured period size was
larger than the requested size, the second call could inadvertently
narrow the configuration space to contain only a single period.

Rather than fixing the call to snd_pcm_hw_params_set_buffer_size_near
to use a size of 2 times the configured period size, the code has been
changed to use snd_pcm_hw_params_set_periods_min in order to more
clearly explain the intent.
gabomdq@9023
     1
gabomdq@9023
     2
Please distribute this file with the SDL runtime environment:
gabomdq@9023
     3
gabomdq@9023
     4
The Simple DirectMedia Layer (SDL for short) is a cross-platform library
icculus@10108
     5
designed to make it easy to write multi-media software, such as games
icculus@10108
     6
and emulators.
gabomdq@9023
     7
gabomdq@9023
     8
The Simple DirectMedia Layer library source code is available from:
icculus@10892
     9
https://www.libsdl.org/
gabomdq@9023
    10
gabomdq@9023
    11
This library is distributed under the terms of the zlib license:
gabomdq@9023
    12
http://www.zlib.net/zlib_license.html
gabomdq@9023
    13