diff options
author | Taylor Holberton <taylorcholberton@gmail.com> | 2016-12-24 20:33:33 -0800 |
---|---|---|
committer | Taylor Holberton <taylorcholberton@gmail.com> | 2016-12-24 20:33:33 -0800 |
commit | c6f908ee871c995c193c2dcbd8ec9bfd69045689 (patch) | |
tree | 66ea691ece1c1f072bd86f3789daa13662389395 /include | |
parent | bd6ed24d37fab13e782b8cd17152e4e796480914 (diff) |
Added pcm_open_by_name()
This function parses a PCM name similar to the ALSA library.
This is done so that the differences between alsa-lib and tinyalsa
are a little more transparent to the user.
Diffstat (limited to 'include')
-rw-r--r-- | include/tinyalsa/pcm.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/tinyalsa/pcm.h b/include/tinyalsa/pcm.h index 9157b9b..b7c32b3 100644 --- a/include/tinyalsa/pcm.h +++ b/include/tinyalsa/pcm.h @@ -236,6 +236,10 @@ struct pcm *pcm_open(unsigned int card, unsigned int flags, const struct pcm_config *config); +struct pcm *pcm_open_by_name(const char *name, + unsigned int flags, + const struct pcm_config *config); + int pcm_close(struct pcm *pcm); int pcm_is_ready(const struct pcm *pcm); |