From cad23d2482a3f551633c6f10d16ea8f4cb83cdb5 Mon Sep 17 00:00:00 2001 From: Taylor Holberton Date: Mon, 10 Apr 2017 11:47:32 -0700 Subject: added prototypes for _get_config() and _set_config() --- 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 2bd6292..e887c07 100644 --- a/include/tinyalsa/pcm.h +++ b/include/tinyalsa/pcm.h @@ -246,6 +246,8 @@ int pcm_is_ready(const struct pcm *pcm); unsigned int pcm_get_channels(const struct pcm *pcm); +const struct pcm_config * pcm_get_config(const struct pcm *pcm); + unsigned int pcm_get_rate(const struct pcm *pcm); enum pcm_format pcm_get_format(const struct pcm *pcm); @@ -254,6 +256,8 @@ int pcm_get_file_descriptor(const struct pcm *pcm); const char *pcm_get_error(const struct pcm *pcm); +int pcm_set_config(const struct pcm_config *config); + unsigned int pcm_format_to_bits(enum pcm_format format); unsigned int pcm_get_buffer_size(const struct pcm *pcm); -- cgit v1.2.3