aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Wilson <ksattic@gmail.com>2015-09-15 11:36:00 -0700
committerSimon Wilson <ksattic@gmail.com>2015-09-15 11:36:00 -0700
commit33fe27c809e0fa67e14db9fec37c5f2ef849aecb (patch)
treece6d4ce00eaaf40ce2277c0b2df1b6e8dce8150e /include
parent8d6f1f3ed27c74b1d927889b5f7cfc6d76af1f2c (diff)
parent4cddf19dfcf65e6fb1277a3230fd0fe509ec7e81 (diff)
Merge pull request #48 from vinodkoul/wait_delay
Wait delay
Diffstat (limited to 'include')
-rw-r--r--include/tinyalsa/asoundlib.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/tinyalsa/asoundlib.h b/include/tinyalsa/asoundlib.h
index 584cfe1..8fb7c95 100644
--- a/include/tinyalsa/asoundlib.h
+++ b/include/tinyalsa/asoundlib.h
@@ -179,6 +179,9 @@ unsigned int pcm_bytes_to_frames(struct pcm *pcm, unsigned int bytes);
int pcm_get_htimestamp(struct pcm *pcm, unsigned int *avail,
struct timespec *tstamp);
+/* Returns the subdevice on which the pcm has been opened */
+unsigned int pcm_get_subdevice(struct pcm *pcm);
+
/* Write data to the fifo.
* Will start playback on the first write or on a write that
* occurs after a fifo underrun.
@@ -205,6 +208,9 @@ int pcm_stop(struct pcm *pcm);
int pcm_wait(struct pcm *pcm, int timeout);
+/* Get the pcm delay */
+long pcm_get_delay(struct pcm *pcm);
+
/*
* MIXER API
*/