aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTaylor Holberton <taylorcholberton@gmail.com>2016-12-01 20:04:04 -0800
committerTaylor Holberton <taylorcholberton@gmail.com>2016-12-01 20:04:04 -0800
commit77979a8855015803c80a3bc99712ed9b72f96020 (patch)
treec83b4c96945c55c695c70178baa57b0b2e816d53 /include
parent94c7c83c01a1d00a5e36cc77bc1b71a8ebdcd1e9 (diff)
Added format related getters for PCM
Added functions: - pcm_get_channels - pcm_get_rate - pcm_get_format These were added since they're required for iterating samples and frames.
Diffstat (limited to 'include')
-rw-r--r--include/tinyalsa/pcm.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/tinyalsa/pcm.h b/include/tinyalsa/pcm.h
index a6c95ce..41d3fb4 100644
--- a/include/tinyalsa/pcm.h
+++ b/include/tinyalsa/pcm.h
@@ -240,6 +240,12 @@ int pcm_close(struct pcm *pcm);
int pcm_is_ready(const struct pcm *pcm);
+unsigned int pcm_get_channels(const struct pcm *pcm);
+
+unsigned int pcm_get_rate(const struct pcm *pcm);
+
+enum pcm_format pcm_get_format(const struct pcm *pcm);
+
int pcm_get_file_descriptor(const struct pcm *pcm);
const char *pcm_get_error(const struct pcm *pcm);