Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
RingBuffer Class Reference

#include <qalsaaudiosource_p.h>

+ Collaboration diagram for RingBuffer:

Public Member Functions

 RingBuffer ()
 
void resize (int size)
 
int bytesOfDataInBuffer () const
 
int freeBytes () const
 
const char * availableData () const
 
int availableDataBlockSize () const
 
void readBytes (int bytes)
 
void write (char *data, int len)
 

Detailed Description

Definition at line 38 of file qalsaaudiosource_p.h.

Constructor & Destructor Documentation

◆ RingBuffer()

RingBuffer::RingBuffer ( )

Definition at line 703 of file qalsaaudiosource.cpp.

Member Function Documentation

◆ availableData()

const char * RingBuffer::availableData ( ) const

Definition at line 734 of file qalsaaudiosource.cpp.

References QByteArray::constData().

Referenced by QAlsaAudioSource::read().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ availableDataBlockSize()

int RingBuffer::availableDataBlockSize ( ) const

Definition at line 739 of file qalsaaudiosource.cpp.

References QByteArray::size().

Referenced by QAlsaAudioSource::read().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ bytesOfDataInBuffer()

int RingBuffer::bytesOfDataInBuffer ( ) const

Definition at line 714 of file qalsaaudiosource.cpp.

References QByteArray::size().

Referenced by QAlsaAudioSource::read().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ freeBytes()

int RingBuffer::freeBytes ( ) const

Definition at line 724 of file qalsaaudiosource.cpp.

References QByteArray::size().

Referenced by QAlsaAudioSource::read().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ readBytes()

void RingBuffer::readBytes ( int bytes)

Definition at line 749 of file qalsaaudiosource.cpp.

References QByteArray::size().

Referenced by QAlsaAudioSource::read().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ resize()

void RingBuffer::resize ( int size)

Definition at line 709 of file qalsaaudiosource.cpp.

References QByteArray::resize().

+ Here is the call graph for this function:

◆ write()

void RingBuffer::write ( char * data,
int len )

Definition at line 754 of file qalsaaudiosource.cpp.

References QByteArray::data(), and QByteArray::size().

Referenced by QAlsaAudioSource::read().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

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