Babel  1
The voip software that only works on your local network
Loading...
Searching...
No Matches
Sample.hpp
Go to the documentation of this file.
1/*
2** EPITECH PROJECT, 2024
3** record_compress_decompress_play
4** File description:
5** Sample.hpp
6*/
7
13#pragma once
14
15#include <vector>
16
17namespace Audio
18{
22 struct Sample {
23 bool initialised = false;
24 std::vector<float> sample;
25 float durationSeconds = 1;
26 unsigned int sampleRate = 48000;
27 unsigned int framesPerBuffer = 480;
28 unsigned int numChannelsPlayback = 1;
29 unsigned int numChannelsRecording = 1;
30 };
31}
Structure representing an audio sample.
Definition Sample.hpp:22
unsigned int numChannelsRecording
Number of recording channels.
Definition Sample.hpp:29
bool initialised
Indicates if the sample is initialised.
Definition Sample.hpp:23
unsigned int framesPerBuffer
Number of frames per buffer.
Definition Sample.hpp:27
std::vector< float > sample
Vector containing the audio sample data.
Definition Sample.hpp:24
unsigned int numChannelsPlayback
Number of playback channels.
Definition Sample.hpp:28
float durationSeconds
Duration of the sample in seconds.
Definition Sample.hpp:25
unsigned int sampleRate
Sample rate of the audio in Hz.
Definition Sample.hpp:26