mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
String array for default rate plugin list
Change the rate converter type to allow string arrays in addition to a string. When a string array is given, the rate plugin probes each string and try to load the converter plugin in the order of the list. For example, you can set defaults.pcm.rate_converter [ "samplerate" "linear" ] so that samplerate plugin is preferred to linear plugin if it's installed.
This commit is contained in:
parent
70e4ec9d08
commit
36987b02c0
4 changed files with 88 additions and 64 deletions
|
|
@ -156,7 +156,8 @@ int _snd_pcm_route_open(snd_pcm_t **pcmp, const char *name,
|
|||
* Rate plugin for linear formats
|
||||
*/
|
||||
int snd_pcm_rate_open(snd_pcm_t **pcmp, const char *name,
|
||||
snd_pcm_format_t sformat, unsigned int srate, const char *converter,
|
||||
snd_pcm_format_t sformat, unsigned int srate,
|
||||
const snd_config_t *converter,
|
||||
snd_pcm_t *slave, int close_slave);
|
||||
int _snd_pcm_rate_open(snd_pcm_t **pcmp, const char *name,
|
||||
snd_config_t *root, snd_config_t *conf,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue