FP Perception 0.1.2
Loading...
Searching...
No Matches
Public Attributes | List of all members
fp_perception::audio_data Struct Reference

Struct to hold audio data. More...

#include <structs.hpp>

Public Attributes

std::vector< int16_t > samples
 Audio samples.
 
int sample_rate = 44100
 Sample rate in Hz.
 
int channels = 1
 Number of audio channels.
 
int chunk_size = 256
 Size of each audio chunk in samples.
 
int chunk_count = 0
 Number of chunks in the audio data.
 
bool override = false
 if the system sample_rate, channels, and chunk_size should be overridden by message data
 

Detailed Description

Struct to hold audio data.

Member Data Documentation

◆ channels

int fp_perception::audio_data::channels = 1

Number of audio channels.

◆ chunk_count

int fp_perception::audio_data::chunk_count = 0

Number of chunks in the audio data.

◆ chunk_size

int fp_perception::audio_data::chunk_size = 256

Size of each audio chunk in samples.

◆ override

bool fp_perception::audio_data::override = false

if the system sample_rate, channels, and chunk_size should be overridden by message data

◆ sample_rate

int fp_perception::audio_data::sample_rate = 44100

Sample rate in Hz.

◆ samples

std::vector<int16_t> fp_perception::audio_data::samples

Audio samples.


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