diff options
author | Lars-Dominik Braun <PromyLOPh@lavabit.com> | 2009-03-01 15:03:08 +0100 |
---|---|---|
committer | Lars-Dominik Braun <PromyLOPh@lavabit.com> | 2009-03-01 15:03:08 +0100 |
commit | d6764679ed3735714acae44c5cf529a9d047dc8b (patch) | |
tree | 236d718069aa7f41713c87f4dae7cab268ba8a42 /src/player.c | |
parent | 152c67bb38e71c1b189774beac07008cbc4d1631 (diff) | |
download | pianobar-d6764679ed3735714acae44c5cf529a9d047dc8b.tar.gz pianobar-d6764679ed3735714acae44c5cf529a9d047dc8b.tar.bz2 pianobar-d6764679ed3735714acae44c5cf529a9d047dc8b.zip |
Even more documentation
...and small cleanups.
Diffstat (limited to 'src/player.c')
-rw-r--r-- | src/player.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/player.c b/src/player.c index 06f3ec3..92038d9 100644 --- a/src/player.c +++ b/src/player.c @@ -75,6 +75,12 @@ inline signed short int applyReplayGain (signed short int value, } } +/* Refill player's buffer with dataSize of data + * @param player structure + * @param new data + * @param data size + * @return 1 on success, 0 when buffer overflow occured + */ inline int BarPlayerBufferFill (struct audioPlayer *player, char *data, size_t dataSize) { /* fill buffer */ @@ -89,6 +95,11 @@ inline int BarPlayerBufferFill (struct audioPlayer *player, char *data, return 1; } +/* move data beginning from read pointer to buffer beginning and + * overwrite data already read from buffer + * @param player structure + * @return nothing at all + */ inline void BarPlayerBufferMove (struct audioPlayer *player) { /* move remaining bytes to buffer beginning */ memmove (player->buffer, player->buffer + player->bufferRead, |