From a912d706c1583e60096c1b4c54dfec2c68547eb8 Mon Sep 17 00:00:00 2001 From: Pierre-Louis Bossart Date: Mon, 24 Oct 2011 14:36:36 -0500 Subject: include: fix header comments and arguments Comment on buffer size was wrong. Argument to bytes_to_frames is bytes, not frames --- include/tinyalsa/asoundlib.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'include') diff --git a/include/tinyalsa/asoundlib.h b/include/tinyalsa/asoundlib.h index 3c86c84..a6d5436 100644 --- a/include/tinyalsa/asoundlib.h +++ b/include/tinyalsa/asoundlib.h @@ -112,12 +112,10 @@ int pcm_set_config(struct pcm *pcm, struct pcm_config *config); /* Returns a human readable reason for the last error */ const char *pcm_get_error(struct pcm *pcm); -/* Returns the buffer size (int frames) that should be used for pcm_write. - * This will be 1/2 of the actual fifo size. - */ +/* Returns the buffer size (int frames) that should be used for pcm_write. */ unsigned int pcm_get_buffer_size(struct pcm *pcm); unsigned int pcm_frames_to_bytes(struct pcm *pcm, unsigned int frames); -unsigned int pcm_bytes_to_frames(struct pcm *pcm, unsigned int frames); +unsigned int pcm_bytes_to_frames(struct pcm *pcm, unsigned int bytes); /* Returns the pcm latency in ms */ unsigned int pcm_get_latency(struct pcm *pcm); -- cgit v1.2.3