.TH "aflibBufferUtils" 3 "16 Jan 2007" "Open Source Audio Library Project" \" -*- nroff -*- .ad l .nh .SH NAME aflibBufferUtils \- Class that implements a buffer for devices that need one. .PP .SH SYNOPSIS .br .PP \fC#include \fP .PP .SS "Public Member Functions" .in +1c .ti -1c .RI "bool \fBinit\fP (int buf_size)" .br .RI "\fIInitializes the buffer class. \fP" .ti -1c .RI "int \fBgetBufferSize\fP () const " .br .RI "\fIGets the total size of the buffer. \fP" .ti -1c .RI "int \fBbytes_available\fP ()" .br .RI "\fIGets the number bytes available to read from the buffer. \fP" .ti -1c .RI "void \fBwrite\fP (unsigned char *buf, int num_bytes)" .br .ti -1c .RI "void \fBread\fP (unsigned char *buf, int num_bytes)" .br .in -1c .SH "Detailed Description" .PP Class that implements a buffer for devices that need one. Some audio devices do not provide buffering for audio data. The Solaris audio device in record mode is one. For record mode one must read data in blocks exactly. If the user requests a size different than the audio device block size then we must read the audio device block size and buffer the data and return the requested size from the buffer. This class provides this buffer. .PP .SH "Member Function Documentation" .PP .SS "bool aflibBufferUtils::init (int buf_size)" .PP Initializes the buffer class. .PP This will initialize the buffer class with a size of buf_size. Subsequent calls to this function will free any previous memory allocated with a call to init. .SH "Author" .PP Generated automatically by Doxygen for Open Source Audio Library Project from the source code.