Vivoe Lite 0.5.0
Lightweight GVA like HMI for military displays.
Loading...
Searching...
No Matches
gva::AudioSampleBase Class Referenceabstract

The Audio Sample Base class. More...

#include <sample.h>

Inheritance diagram for gva::AudioSampleBase:
Inheritance graph
Collaboration diagram for gva::AudioSampleBase:
Collaboration graph

Public Member Functions

virtual ~AudioSampleBase ()=default
 Destroy the Audio Sample Base object.
 
virtual int32_t ReadBytes (uint8_t *buffer, const uint32_t bytes)=0
 Destroy the Audio Sample Base object.
 
virtual int32_t GetChannels () const =0
 Get the Channels attribute.
 
virtual void Seek (uint32_t bytes)=0
 Get the Sampling Rate attribute.
 
virtual int32_t GetSamplingRate () const =0
 Get the Sampling Rate attribute.
 

Detailed Description

The Audio Sample Base class.

Member Function Documentation

◆ GetChannels()

virtual int32_t gva::AudioSampleBase::GetChannels ( ) const
pure virtual

Get the Channels attribute.

Returns
int32_t number of channels

Implemented in gva::AudioSample.

◆ GetSamplingRate()

virtual int32_t gva::AudioSampleBase::GetSamplingRate ( ) const
pure virtual

Get the Sampling Rate attribute.

Returns
int32_t sampling rate

Implemented in gva::AudioSample.

◆ ReadBytes()

virtual int32_t gva::AudioSampleBase::ReadBytes ( uint8_t *  buffer,
const uint32_t  bytes 
)
pure virtual

Destroy the Audio Sample Base object.

Parameters
bufferThe buffer to read into
bytesThe number of bytes to read
Returns
int32_t

Implemented in gva::AudioSample.

◆ Seek()

virtual void gva::AudioSampleBase::Seek ( uint32_t  bytes)
pure virtual

Get the Sampling Rate attribute.

Returns
int32_t seek location

Implemented in gva::AudioSample.


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