Babel  1
The voip software that only works on your local network
Loading...
Searching...
No Matches
Audio::Sample Struct Reference

Structure representing an audio sample. More...

#include <Sample.hpp>

Collaboration diagram for Audio::Sample:
Collaboration graph

Data Fields

bool initialised = false
 Indicates if the sample is initialised.
 
std::vector< float > sample
 Vector containing the audio sample data.
 
float durationSeconds = 1
 Duration of the sample in seconds.
 
unsigned int sampleRate = 48000
 Sample rate of the audio in Hz.
 
unsigned int framesPerBuffer = 480
 Number of frames per buffer.
 
unsigned int numChannelsPlayback = 1
 Number of playback channels.
 
unsigned int numChannelsRecording = 1
 Number of recording channels.
 

Detailed Description

Structure representing an audio sample.

Definition at line 22 of file Sample.hpp.

Field Documentation

◆ durationSeconds

float Audio::Sample::durationSeconds = 1

Duration of the sample in seconds.

Definition at line 25 of file Sample.hpp.

◆ framesPerBuffer

unsigned int Audio::Sample::framesPerBuffer = 480

Number of frames per buffer.

Definition at line 27 of file Sample.hpp.

◆ initialised

bool Audio::Sample::initialised = false

Indicates if the sample is initialised.

Definition at line 23 of file Sample.hpp.

◆ numChannelsPlayback

unsigned int Audio::Sample::numChannelsPlayback = 1

Number of playback channels.

Definition at line 28 of file Sample.hpp.

◆ numChannelsRecording

unsigned int Audio::Sample::numChannelsRecording = 1

Number of recording channels.

Definition at line 29 of file Sample.hpp.

◆ sample

std::vector<float> Audio::Sample::sample

Vector containing the audio sample data.

Definition at line 24 of file Sample.hpp.

◆ sampleRate

unsigned int Audio::Sample::sampleRate = 48000

Sample rate of the audio in Hz.

Definition at line 26 of file Sample.hpp.


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