aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTaylor Holberton <taylorcholberton@gmail.com>2016-12-04 13:42:28 -0800
committerTaylor Holberton <taylorcholberton@gmail.com>2016-12-04 13:42:28 -0800
commit558e594ba24b34cfd7374cf706b834479324c917 (patch)
tree21e3e735d7e43c35e5779d5647600c31def193d9 /include
parent0cceb331992a0fd41aac9aaf448ecc40b7899a16 (diff)
Added pcm_link and pcm_unlink functions
The link function is necessary for time sychronization between multiple PCMs.
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 1d84eed..9157b9b 100644
--- a/include/tinyalsa/pcm.h
+++ b/include/tinyalsa/pcm.h
@@ -288,6 +288,10 @@ int pcm_mmap_begin(struct pcm *pcm, void **areas, unsigned int *offset, unsigned
int pcm_mmap_commit(struct pcm *pcm, unsigned int offset, unsigned int frames);
+int pcm_link(struct pcm *pcm1, struct pcm *pcm2);
+
+int pcm_unlink(struct pcm *pcm);
+
int pcm_prepare(struct pcm *pcm);
int pcm_start(struct pcm *pcm);