LogoSearch packages:      

Sourcecode: audacity version File versions

RingBuffer Class Reference

List of all members.


Detailed Description

Holds streamed audio samples.

This class is thread-safe, assuming that there is only one thread writing, and one thread reading. If two threads both need to read, or both need to write, they need to lock this class from outside using their own mutex.

AvailForPut and AvailForGet may underestimate but will never overestimate.

Definition at line 49 of file ringbuffer.h.


Public Member Functions

int AvailForGet ()
int AvailForPut ()
int Discard (int samples)
int Get (samplePtr buffer, sampleFormat format, int samples)
int Put (samplePtr buffer, sampleFormat format, int samples)
 RingBuffer (sampleFormat format, int size)

Public Attributes

long bigMask
char * buffer
long bufferSize
long readIndex
long smallMask
long writeIndex

Private Member Functions

int Len ()

Private Attributes

samplePtr mBuffer
int mBufferSize
int mEnd
sampleFormat mFormat
int mStart

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.5.1   Back to index