25 #include "constants.h"
33 unsigned int getChannels()
const;
34 unsigned int getFrameRate()
const;
35 double getSample(
unsigned int index)
const;
36 double getSampleByFrame(
unsigned int frame,
unsigned int channel)
const;
37 double getSampleAtReadIterator()
const;
38 unsigned int getSampleCount()
const;
39 unsigned int getFrameCount()
const;
41 void setChannels(
unsigned int newChannels);
42 void setFrameRate(
unsigned int newFrameRate);
43 void setSample(
unsigned int index,
double value);
44 void setSampleByFrame(
unsigned int frame,
unsigned int channels,
double value);
45 void setSampleAtWriteIterator(
double value);
46 void addToSampleCount(
unsigned int newSamples);
47 void addToFrameCount(
unsigned int newFrames);
49 void advanceReadIterator(
unsigned int by = 1);
50 void advanceWriteIterator(
unsigned int by = 1);
51 bool readIteratorWithinUpperBound()
const;
52 bool writeIteratorWithinUpperBound()
const;
53 void resetIterators();
57 void discardFramesFromFront(
unsigned int discardFrameCount);
59 void downsample(
unsigned int factor,
bool shortcut =
true);
60 AudioData* sliceSamplesFromBack(
unsigned int sliceSampleCount);
63 std::deque<double> samples;
64 unsigned int channels;
65 unsigned int frameRate;
66 std::deque<double>::const_iterator readIterator;
67 std::deque<double>::iterator writeIterator;
Definition: audiodata.h:29