MythTV  master
Public Member Functions | Public Attributes | List of all members
AudioBuffer Class Reference

#include <mythtranscode/audioreencodebuffer.h>

Collaboration diagram for AudioBuffer:
[legend]

Public Member Functions

 AudioBuffer ()
 
 AudioBuffer (const AudioBuffer &old)
 
 ~AudioBuffer ()
 
void appendData (unsigned char *buffer, int len, int frames, std::chrono::milliseconds time)
 
char * data (void) const
 
int size (void) const
 

Public Attributes

uint8_t * m_buffer {nullptr}
 
size_t m_size {0}
 
size_t m_realsize {ABLOCK_SIZE}
 
int m_frames {0}
 
std::chrono::milliseconds m_time {-1ms}
 

Detailed Description

Definition at line 9 of file audioreencodebuffer.h.

Constructor & Destructor Documentation

◆ AudioBuffer() [1/2]

AudioBuffer::AudioBuffer ( )

Definition at line 11 of file audioreencodebuffer.cpp.

◆ AudioBuffer() [2/2]

AudioBuffer::AudioBuffer ( const AudioBuffer old)

Definition at line 20 of file audioreencodebuffer.cpp.

◆ ~AudioBuffer()

AudioBuffer::~AudioBuffer ( )

Definition at line 32 of file audioreencodebuffer.cpp.

Member Function Documentation

◆ appendData()

void AudioBuffer::appendData ( unsigned char *  buffer,
int  len,
int  frames,
std::chrono::milliseconds  time 
)

Definition at line 37 of file audioreencodebuffer.cpp.

Referenced by AudioReencodeBuffer::AddData().

◆ data()

char* AudioBuffer::data ( void  ) const
inline

Definition at line 17 of file audioreencodebuffer.h.

Referenced by Transcode::TranscodeFile().

◆ size()

int AudioBuffer::size ( void  ) const
inline

Definition at line 18 of file audioreencodebuffer.h.

Referenced by AudioReencodeBuffer::AddData(), and Transcode::TranscodeFile().

Member Data Documentation

◆ m_buffer

uint8_t* AudioBuffer::m_buffer {nullptr}

Definition at line 20 of file audioreencodebuffer.h.

Referenced by appendData(), AudioBuffer(), data(), and ~AudioBuffer().

◆ m_size

size_t AudioBuffer::m_size {0}

Definition at line 21 of file audioreencodebuffer.h.

Referenced by appendData(), AudioBuffer(), and size().

◆ m_realsize

size_t AudioBuffer::m_realsize {ABLOCK_SIZE}

Definition at line 22 of file audioreencodebuffer.h.

Referenced by appendData(), and AudioBuffer().

◆ m_frames

int AudioBuffer::m_frames {0}

Definition at line 23 of file audioreencodebuffer.h.

Referenced by appendData(), and Transcode::TranscodeFile().

◆ m_time

std::chrono::milliseconds AudioBuffer::m_time {-1ms}

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