diff options
author | Taylor Holberton <taylorcholberton@gmail.com> | 2016-12-01 20:43:28 -0800 |
---|---|---|
committer | Taylor Holberton <taylorcholberton@gmail.com> | 2016-12-01 20:43:28 -0800 |
commit | d7b140a5d99a7283bb78e48286bdaefaae398bba (patch) | |
tree | 3f35a247c6fb57c98a8c35b746d1c4fc10a55ff9 /include | |
parent | e0781f13a774d872b24435511e5199ec2186c769 (diff) |
Using frame counts in pcm_readi and pcm_writei
pcm_readi and pcm_writei now use a frame count to specify the
buffer length instead of using a byte count.
Diffstat (limited to 'include')
-rw-r--r-- | include/tinyalsa/pcm.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/tinyalsa/pcm.h b/include/tinyalsa/pcm.h index f24dedb..1d84eed 100644 --- a/include/tinyalsa/pcm.h +++ b/include/tinyalsa/pcm.h @@ -262,9 +262,9 @@ int pcm_get_htimestamp(struct pcm *pcm, unsigned int *avail, struct timespec *ts unsigned int pcm_get_subdevice(const struct pcm *pcm); -int pcm_writei(struct pcm *pcm, const void *data, unsigned int count); +int pcm_writei(struct pcm *pcm, const void *data, unsigned int frame_count); -int pcm_readi(struct pcm *pcm, void *data, unsigned int count); +int pcm_readi(struct pcm *pcm, void *data, unsigned int frame_count); #ifdef __GNUC__ |