summaryrefslogtreecommitdiff
path: root/include/pcm_plugin.h
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2007-03-22 00:58:42 +0100
committerTakashi Iwai <tiwai@suse.de>2007-03-22 00:58:42 +0100
commit36987b02c0fc89c463aadb7df6bd7951bf5f2abe (patch)
tree5ab3ed548e506bdbed012b26366b4703683cf42f /include/pcm_plugin.h
parent70e4ec9d08ca7c162dce873d82b5610c700cf707 (diff)
downloadalsa-lib-36987b02c0fc89c463aadb7df6bd7951bf5f2abe.tar.gz
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.
Diffstat (limited to 'include/pcm_plugin.h')
-rw-r--r--include/pcm_plugin.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/pcm_plugin.h b/include/pcm_plugin.h
index 7d48527e..f6e89651 100644
--- a/include/pcm_plugin.h
+++ b/include/pcm_plugin.h
@@ -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,