Class AudioAnalyzerSource

Inheritance Relationships

Derived Types

Class Documentation

class AudioAnalyzerSource

Audio Analyzer Source.

Common base to all audio source types

Subclassed by AudioAnalyzerCapturer, AudioAnalyzerExtractor, AudioAnalyzerLoopback, AudioAnalyzerOVR, AudioAnalyzerPlayer, AudioAnalyzerStream

Public Functions

inline AudioAnalyzerSource()

Constructor

inline virtual ~AudioAnalyzerSource()

Destructor

AudioAnalyzerSource(AudioAnalyzerSource const &x) = delete

Disable copy constructor

Parameters:

x – —

void operator=(AudioAnalyzerSource const &x) = delete

Disable copy assignment

Parameters:

x – —

inline virtual const PCAudioAnalyzer::AUDIOFILE_INFO *getAudioInfo()

Returns the audio info structure pointer

Returns:

Pointer to audio info structure

inline virtual void setRawDataPtr(uint8 *dataPtr)

Update raw data pointer

Parameters:

dataPtr – Pointer to raw data

inline std::mutex &getSourceMutex()

Returns a mutex to restrict access to the source raw data

Returns:

Mutex reference

virtual float getPlaybackProgress(float &bufferPosTime) = 0

Returns the playback progress in seconds

Parameters:

bufferPosTime – Buffer position

Returns:

Playback progress in seconds

virtual bool hasOnlyHeader() const = 0

Returns if only has been loaded the header data

Returns:

Has only header data

virtual bool needsBufferOffset() const = 0

Returns if the buffer needs to be offset

Returns:

Needs buffer offset

Protected Attributes

std::unique_ptr<PCAudioAnalyzer::AUDIOFILE_INFO> _audioInfo

Audio info structure

std::mutex _sourceMutex

Mutex for raw data