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

#include <AudioBufferDataSource.h>

Inheritance diagram for AudioBufferDataSource:
AudioBaseDataSource IAudioDataSource

Public Member Functions

 AudioBufferDataSource (Blob buffer)
 
virtual ~AudioBufferDataSource ()=default
 
virtual bool Open () override
 
- Public Member Functions inherited from AudioBaseDataSource
 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

FFmpegBlobInputStream stream
 
- Protected Attributes inherited from AudioBaseDataSource
AVFormatContext * pFormatContext
 
int iStreamIndex
 
AVCodecContext * pCodecContext
 
SwrContext * pConverter
 
bool bOpened
 
std::queue< Blobqueue
 
float _savedDuration
 

Constructor & Destructor Documentation

◆ AudioBufferDataSource()

AudioBufferDataSource::AudioBufferDataSource ( Blob  buffer)
explicit

◆ ~AudioBufferDataSource()

virtual AudioBufferDataSource::~AudioBufferDataSource ( )
virtualdefault

Member Function Documentation

◆ Open()

bool AudioBufferDataSource::Open ( )
overridevirtual

Reimplemented from AudioBaseDataSource.

Member Data Documentation

◆ stream

FFmpegBlobInputStream AudioBufferDataSource::stream
protected

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