OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
AudioBaseDataSource Class Reference

#include <AudioBaseDataSource.h>

Inheritance diagram for AudioBaseDataSource:
IAudioDataSource AudioBufferDataSource

Public Member Functions

 AudioBaseDataSource ()
 
virtual ~AudioBaseDataSource ()
 
virtual bool Open () override
 
virtual void Close () override
 
virtual size_t GetSampleRate () override
 
virtual size_t GetChannelCount () override
 
virtual Blob GetNextBuffer () override
 
virtual float GetDuration () override
 
- Public Member Functions inherited from IAudioDataSource
 IAudioDataSource ()
 
virtual ~IAudioDataSource ()
 
virtual bool Open ()=0
 
virtual void Close ()=0
 
virtual size_t GetSampleRate ()=0
 
virtual size_t GetChannelCount ()=0
 
virtual Blob GetNextBuffer ()=0
 
virtual float GetDuration ()=0
 

Protected Attributes

AVFormatContext * pFormatContext
 
int iStreamIndex
 
AVCodecContext * pCodecContext
 
SwrContext * pConverter
 
bool bOpened
 
std::queue< Blobqueue
 
float _savedDuration
 

Constructor & Destructor Documentation

◆ AudioBaseDataSource()

AudioBaseDataSource::AudioBaseDataSource ( )

◆ ~AudioBaseDataSource()

virtual AudioBaseDataSource::~AudioBaseDataSource ( )
inlinevirtual

Member Function Documentation

◆ Close()

void AudioBaseDataSource::Close ( )
overridevirtual

Implements IAudioDataSource.

◆ GetChannelCount()

size_t AudioBaseDataSource::GetChannelCount ( )
overridevirtual

Implements IAudioDataSource.

◆ GetDuration()

float AudioBaseDataSource::GetDuration ( )
overridevirtual

Implements IAudioDataSource.

◆ GetNextBuffer()

Blob AudioBaseDataSource::GetNextBuffer ( )
overridevirtual

Implements IAudioDataSource.

◆ GetSampleRate()

size_t AudioBaseDataSource::GetSampleRate ( )
overridevirtual

Implements IAudioDataSource.

◆ Open()

bool AudioBaseDataSource::Open ( )
overridevirtual

Implements IAudioDataSource.

Reimplemented in AudioBufferDataSource.

Member Data Documentation

◆ _savedDuration

float AudioBaseDataSource::_savedDuration
protected

◆ bOpened

bool AudioBaseDataSource::bOpened
protected

◆ iStreamIndex

int AudioBaseDataSource::iStreamIndex
protected

◆ pCodecContext

AVCodecContext* AudioBaseDataSource::pCodecContext
protected

◆ pConverter

SwrContext* AudioBaseDataSource::pConverter
protected

◆ pFormatContext

AVFormatContext* AudioBaseDataSource::pFormatContext
protected

◆ queue

std::queue<Blob> AudioBaseDataSource::queue
protected

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