aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTaylor Holberton <taylorcholberton@gmail.com>2017-04-10 11:47:32 -0700
committerTaylor Holberton <taylorcholberton@gmail.com>2017-04-10 11:47:32 -0700
commitcad23d2482a3f551633c6f10d16ea8f4cb83cdb5 (patch)
tree955101b366ed0cb2e9c9eb23b3a588bb4b15e37c /include
parent25976dc2f1a6103b87709f81fdca34ae6141fe7c (diff)
added prototypes for _get_config() and _set_config()
Diffstat (limited to 'include')
-rw-r--r--include/tinyalsa/pcm.h4
1 files changed, 4 insertions, 0 deletions
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);