Vital
Loading...
Searching...
No Matches
FileSource::SampleBuffer Struct Reference

A simple structure holding a buffer of samples loaded from the file source. More...

#include <file_source.h>

Public Member Functions

 SampleBuffer ()
 

Public Attributes

std::unique_ptr< float[]> data
 Pointer to raw audio data.
 
int size
 Number of samples in the buffer.
 
int sample_rate
 Sample rate of the audio data.
 

Detailed Description

A simple structure holding a buffer of samples loaded from the file source.

Constructor & Destructor Documentation

◆ SampleBuffer()

FileSource::SampleBuffer::SampleBuffer ( )
inline

Member Data Documentation

◆ data

std::unique_ptr<float[]> FileSource::SampleBuffer::data

Pointer to raw audio data.

◆ sample_rate

int FileSource::SampleBuffer::sample_rate

Sample rate of the audio data.

◆ size

int FileSource::SampleBuffer::size

Number of samples in the buffer.


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