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

using range_t = QPair< std::chrono::milliseconds, std::chrono::milliseconds >
 

Public Member Functions

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

Static Public Member Functions

static int BitsPerChannel ()
 

Protected Member Functions

unsigned BytesPerSample () const
 
unsigned Bytes2Samples (unsigned bytes) const
 
std::chrono::milliseconds Samples2MS (unsigned samples) const
 
unsigned MS2Samples (std::chrono::milliseconds msec) 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_sampleRate {44100}
 
std::chrono::milliseconds m_tcFirst {0ms}
 
std::chrono::milliseconds m_tcNext {0ms}
 
int m_bits {0}
 
int m_channels {0}
 
int m_sizeMax {0}
 

Detailed Description

Definition at line 27 of file audiooutputgraph.cpp.

Member Typedef Documentation

◆ range_t

using AudioOutputGraph::Buffer::range_t = QPair<std::chrono::milliseconds, std::chrono::milliseconds>

Definition at line 42 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 33 of file audiooutputgraph.cpp.

Referenced by AudioOutputGraph::SetSampleCount().

◆ SetSampleRate()

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

Definition at line 34 of file audiooutputgraph.cpp.

Referenced by AudioOutputGraph::SetSampleRate().

◆ BitsPerChannel()

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

Definition at line 36 of file audiooutputgraph.cpp.

Referenced by AudioOutputGraph::GetImage().

◆ Channels()

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

Definition at line 37 of file audiooutputgraph.cpp.

Referenced by AudioOutputGraph::GetImage().

◆ Next()

std::chrono::milliseconds AudioOutputGraph::Buffer::Next ( ) const
inline

Definition at line 39 of file audiooutputgraph.cpp.

Referenced by AudioOutputGraph::GetImage().

◆ First()

std::chrono::milliseconds AudioOutputGraph::Buffer::First ( ) const
inline

Definition at line 40 of file audiooutputgraph.cpp.

Referenced by AudioOutputGraph::GetImage().

◆ Avail()

range_t AudioOutputGraph::Buffer::Avail ( std::chrono::milliseconds  timecode) const
inline

Definition at line 43 of file audiooutputgraph.cpp.

Referenced by AudioOutputGraph::GetImage().

◆ Samples()

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

Definition at line 66 of file audiooutputgraph.cpp.

Referenced by AudioOutputGraph::GetImage().

◆ Empty()

void AudioOutputGraph::Buffer::Empty ( )
inline

Definition at line 72 of file audiooutputgraph.cpp.

Referenced by AudioOutputGraph::Reset().

◆ Append() [1/2]

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

Definition at line 79 of file audiooutputgraph.cpp.

Referenced by AudioOutputGraph::add().

◆ Data16()

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

Definition at line 122 of file audiooutputgraph.cpp.

Referenced by AudioOutputGraph::GetImage().

◆ BytesPerSample()

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

Definition at line 129 of file audiooutputgraph.cpp.

◆ Bytes2Samples()

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

Definition at line 134 of file audiooutputgraph.cpp.

◆ Samples2MS()

std::chrono::milliseconds AudioOutputGraph::Buffer::Samples2MS ( unsigned  samples) const
inlineprotected

Definition at line 139 of file audiooutputgraph.cpp.

◆ MS2Samples()

unsigned AudioOutputGraph::Buffer::MS2Samples ( std::chrono::milliseconds  msec) const
inlineprotected

Definition at line 144 of file audiooutputgraph.cpp.

◆ Append() [2/2]

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

Definition at line 149 of file audiooutputgraph.cpp.

◆ Resize()

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

Definition at line 191 of file audiooutputgraph.cpp.

Member Data Documentation

◆ m_maxSamples

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

Definition at line 200 of file audiooutputgraph.cpp.

◆ m_sampleRate

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

Definition at line 201 of file audiooutputgraph.cpp.

◆ m_tcFirst

std::chrono::milliseconds AudioOutputGraph::Buffer::m_tcFirst {0ms}
private

Definition at line 202 of file audiooutputgraph.cpp.

◆ m_tcNext

std::chrono::milliseconds AudioOutputGraph::Buffer::m_tcNext {0ms}
private

Definition at line 202 of file audiooutputgraph.cpp.

◆ m_bits

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

Definition at line 203 of file audiooutputgraph.cpp.

◆ m_channels

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

Definition at line 204 of file audiooutputgraph.cpp.

◆ m_sizeMax

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

Definition at line 205 of file audiooutputgraph.cpp.


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