From c6f908ee871c995c193c2dcbd8ec9bfd69045689 Mon Sep 17 00:00:00 2001 From: Taylor Holberton Date: Sat, 24 Dec 2016 20:33:33 -0800 Subject: 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. --- include/tinyalsa/pcm.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') 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); -- cgit v1.2.3