The Audio Sample Base class.
More...
#include <sample.h>
|
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.
|
|
The Audio Sample Base class.
◆ 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
-
buffer | The buffer to read into |
bytes | The 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: