mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-05 13:30:00 -05:00
pcm: introduce defaults.pcm.compat to change the params choose behaviour
Having getenv directly in the function is not a good idea. Allow configuration of the behaviour change in snd_pcm_param_choose() function using alsa.conf. Use the environment variable LIBASOUND_COMPAT only as fallback. Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
09879a4bb5
commit
de606e9c25
4 changed files with 16 additions and 3 deletions
|
|
@ -184,7 +184,8 @@ struct _snd_pcm {
|
|||
int poll_fd;
|
||||
unsigned short poll_events;
|
||||
int setup: 1,
|
||||
monotonic: 1;
|
||||
monotonic: 1,
|
||||
compat: 1;
|
||||
snd_pcm_access_t access; /* access mode */
|
||||
snd_pcm_format_t format; /* SND_PCM_FORMAT_* */
|
||||
snd_pcm_subformat_t subformat; /* subformat */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue