Krotos Modules 3
Loading...
Searching...
No Matches
krotos::AudioSegment Struct Reference

A struct to describe an audio sample (as appears in the waveform view) More...

#include <SampleEngine.h>

Public Attributes

String name
 
String path
 
int sampleRate {0}
 
float normalisationFactor
 
int segmentStartPosition {0}
 
int segmentLength {0}
 
volatile int selectionStartPosition {0}
 
volatile int selectionLength {0}
 
volatile bool muted {false}
 
Value solo
 

Detailed Description

A struct to describe an audio sample (as appears in the waveform view)

It was decided to use "segment" for this description of an audio sample to disambiguate it from "sample" as in PCM sample Effectively it tells you where to find a segment of audio in the audio buffer where all the loaded audio samples are concatenated

Member Data Documentation

◆ muted

volatile bool krotos::AudioSegment::muted {false}

◆ name

String krotos::AudioSegment::name

◆ normalisationFactor

float krotos::AudioSegment::normalisationFactor
Initial value:
{
1.0f}

◆ path

String krotos::AudioSegment::path

◆ sampleRate

int krotos::AudioSegment::sampleRate {0}

◆ segmentLength

int krotos::AudioSegment::segmentLength {0}

◆ segmentStartPosition

int krotos::AudioSegment::segmentStartPosition {0}

◆ selectionLength

volatile int krotos::AudioSegment::selectionLength {0}

◆ selectionStartPosition

volatile int krotos::AudioSegment::selectionStartPosition {0}

◆ solo

Value krotos::AudioSegment::solo

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