diff options
author | Simon Wilson <simonwilson@google.com> | 2011-07-25 10:58:30 -0700 |
---|---|---|
committer | Simon Wilson <simonwilson@google.com> | 2011-07-25 10:59:12 -0700 |
commit | dd88f13d9b398c132e3358c62137ff2e23f321ab (patch) | |
tree | 46e50389f620513bdeb91d8b50859fd30201d8c0 /include | |
parent | 7153bffb805359a82f7857889e82bdcc5ff0afd8 (diff) | |
download | tinyalsa-dd88f13d9b398c132e3358c62137ff2e23f321ab.tar.gz |
Update to latest tinyalsa
40b018e pcm: add pcm_get_htimestamp() function
c8aedef tinycap: remove extra parameter from strcmp
Change-Id: Ic241e3b5e41e26cf6586d0489488c96fae692e0b
Diffstat (limited to 'include')
-rw-r--r-- | include/tinyalsa/asoundlib.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/tinyalsa/asoundlib.h b/include/tinyalsa/asoundlib.h index 14511c9..7b13c0d 100644 --- a/include/tinyalsa/asoundlib.h +++ b/include/tinyalsa/asoundlib.h @@ -29,6 +29,7 @@ #ifndef ASOUNDLIB_H #define ASOUNDLIB_H +#include <sys/time.h> /* * PCM API @@ -90,6 +91,15 @@ unsigned int pcm_get_buffer_size(struct pcm *pcm); /* Returns the pcm latency in ms */ unsigned int pcm_get_latency(struct pcm *pcm); +/* Returns available frames in pcm buffer and corresponding time stamp. + * For an input stream, frames available are frames ready for the + * application to read. + * For an output stream, frames available are the number of empty frames available + * for the application to write. + */ +int pcm_get_htimestamp(struct pcm *pcm, unsigned int *avail, + struct timespec *tstamp); + /* Write data to the fifo. * Will start playback on the first write or on a write that * occurs after a fifo underrun. |