MythTV  master
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
AudioOutputGraph::Buffer Class Reference
Inheritance diagram for AudioOutputGraph::Buffer:
Inheritance graph
[legend]
Collaboration diagram for AudioOutputGraph::Buffer:
Collaboration graph
[legend]

Public Types

typedef QPair< int64_t, int64_t > range_t
 

Public Member Functions

 Buffer ()=default
 
void SetMaxSamples (unsigned samples)
 
void SetSampleRate (unsigned sample_rate)
 
int Channels () const
 
int64_t Next () const
 
int64_t First () const
 
range_t Avail (int64_t timecode) const
 
int Samples (const range_t &avail) const
 
void Empty ()
 
void Append (const void *b, unsigned long len, unsigned long timecode, int channels, int bits)
 
const int16_t * Data16 (const range_t &avail) const
 

Static Public Member Functions

static int BitsPerChannel ()
 

Protected Member Functions

unsigned BytesPerSample () const
 
unsigned Bytes2Samples (unsigned bytes) const
 
unsigned long Samples2MS (unsigned samples) const
 
unsigned MS2Samples (int64_t ms) const
 
void Append (const void *b, unsigned long len, int bits)
 

Private Member Functions

void Resize (int channels, int bits)
 

Private Attributes

unsigned m_maxSamples {0}
 
unsigned m_sample_rate {44100}
 
unsigned long m_tcFirst {0}
 
unsigned long m_tcNext {0}
 
int m_bits {0}
 
int m_channels {0}
 
int m_sizeMax {0}
 

Detailed Description

Definition at line 25 of file audiooutputgraph.cpp.

Member Typedef Documentation

◆ range_t

typedef QPair<int64_t, int64_t> AudioOutputGraph::Buffer::range_t

Definition at line 40 of file audiooutputgraph.cpp.

Constructor & Destructor Documentation

◆ Buffer()

AudioOutputGraph::Buffer::Buffer ( )
default

Member Function Documentation

◆ SetMaxSamples()

void AudioOutputGraph::Buffer::SetMaxSamples ( unsigned  samples)
inline

Definition at line 31 of file audiooutputgraph.cpp.

Referenced by AudioOutputGraph::SetSampleCount().

◆ SetSampleRate()

void AudioOutputGraph::Buffer::SetSampleRate ( unsigned  sample_rate)
inline

Definition at line 32 of file audiooutputgraph.cpp.

Referenced by AudioOutputGraph::SetSampleRate().

◆ BitsPerChannel()

static int AudioOutputGraph::Buffer::BitsPerChannel ( )
inlinestatic

Definition at line 34 of file audiooutputgraph.cpp.

Referenced by AudioOutputGraph::GetImage().

◆ Channels()

int AudioOutputGraph::Buffer::Channels ( ) const
inline

Definition at line 35 of file audiooutputgraph.cpp.

Referenced by AudioOutputGraph::GetImage().

◆ Next()

int64_t AudioOutputGraph::Buffer::Next ( ) const
inline

Definition at line 37 of file audiooutputgraph.cpp.

Referenced by AudioOutputGraph::GetImage().

◆ First()

int64_t AudioOutputGraph::Buffer::First ( ) const
inline

Definition at line 38 of file audiooutputgraph.cpp.

Referenced by AudioOutputGraph::GetImage().

◆ Avail()

range_t AudioOutputGraph::Buffer::Avail ( int64_t  timecode) const
inline

Definition at line 41 of file audiooutputgraph.cpp.

Referenced by AudioOutputGraph::GetImage().

◆ Samples()

int AudioOutputGraph::Buffer::Samples ( const range_t avail) const
inline

Definition at line 64 of file audiooutputgraph.cpp.

Referenced by AudioOutputGraph::GetImage().

◆ Empty()

void AudioOutputGraph::Buffer::Empty ( )
inline

Definition at line 70 of file audiooutputgraph.cpp.

Referenced by AudioOutputGraph::Reset().

◆ Append() [1/2]

void AudioOutputGraph::Buffer::Append ( const void *  b,
unsigned long  len,
unsigned long  timecode,
int  channels,
int  bits 
)
inline

Definition at line 77 of file audiooutputgraph.cpp.

Referenced by AudioOutputGraph::add().

◆ Data16()

const int16_t* AudioOutputGraph::Buffer::Data16 ( const range_t avail) const
inline

Definition at line 120 of file audiooutputgraph.cpp.

Referenced by AudioOutputGraph::GetImage().

◆ BytesPerSample()

unsigned AudioOutputGraph::Buffer::BytesPerSample ( ) const
inlineprotected

Definition at line 127 of file audiooutputgraph.cpp.

Referenced by Bytes2Samples(), Data16(), and Resize().

◆ Bytes2Samples()

unsigned AudioOutputGraph::Buffer::Bytes2Samples ( unsigned  bytes) const
inlineprotected

Definition at line 132 of file audiooutputgraph.cpp.

Referenced by Append().

◆ Samples2MS()

unsigned long AudioOutputGraph::Buffer::Samples2MS ( unsigned  samples) const
inlineprotected

Definition at line 137 of file audiooutputgraph.cpp.

Referenced by Append(), and Avail().

◆ MS2Samples()

unsigned AudioOutputGraph::Buffer::MS2Samples ( int64_t  ms) const
inlineprotected

Definition at line 142 of file audiooutputgraph.cpp.

Referenced by Data16(), and Samples().

◆ Append() [2/2]

void AudioOutputGraph::Buffer::Append ( const void *  b,
unsigned long  len,
int  bits 
)
inlineprotected

Definition at line 147 of file audiooutputgraph.cpp.

◆ Resize()

void AudioOutputGraph::Buffer::Resize ( int  channels,
int  bits 
)
inlineprivate

Definition at line 189 of file audiooutputgraph.cpp.

Referenced by Append().

Member Data Documentation

◆ m_maxSamples

unsigned AudioOutputGraph::Buffer::m_maxSamples {0}
private

Definition at line 198 of file audiooutputgraph.cpp.

Referenced by Avail(), and SetMaxSamples().

◆ m_sample_rate

unsigned AudioOutputGraph::Buffer::m_sample_rate {44100}
private

Definition at line 199 of file audiooutputgraph.cpp.

Referenced by MS2Samples(), Resize(), Samples2MS(), and SetSampleRate().

◆ m_tcFirst

unsigned long AudioOutputGraph::Buffer::m_tcFirst {0}
private

Definition at line 200 of file audiooutputgraph.cpp.

Referenced by Append(), Avail(), Data16(), Empty(), and First().

◆ m_tcNext

unsigned long AudioOutputGraph::Buffer::m_tcNext {0}
private

Definition at line 200 of file audiooutputgraph.cpp.

Referenced by Append(), Avail(), Empty(), and Next().

◆ m_bits

int AudioOutputGraph::Buffer::m_bits {0}
private

Definition at line 201 of file audiooutputgraph.cpp.

Referenced by Append(), Bytes2Samples(), BytesPerSample(), Empty(), and Resize().

◆ m_channels

int AudioOutputGraph::Buffer::m_channels {0}
private

Definition at line 202 of file audiooutputgraph.cpp.

Referenced by Append(), Bytes2Samples(), BytesPerSample(), Channels(), Empty(), and Resize().

◆ m_sizeMax

int AudioOutputGraph::Buffer::m_sizeMax {0}
private

Definition at line 203 of file audiooutputgraph.cpp.

Referenced by Append(), and Resize().


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