Bridges-C++ 3.5.0-dev2-1-ge3e57bf
Bridges(C++ API)
AudioChannel.h
Go to the documentation of this file.
1
2#include <vector>
10 private:
11 std::vector<int> data;
12
13 public:
14 AudioChannel(int sampleCount) {
15 data = std::vector<int>(sampleCount);
16 }
17
18 int getChannelSize() const {
19 return data.size();
20 }
21
22 int getSample(int index) const {
23 return data[index];
24 }
25
26 void setSample(int index, int val) {
27 data[index] = val;
28 }
29};
class that represents an audio channel.
Definition: AudioChannel.h:9
int getSample(int index) const
Definition: AudioChannel.h:22
void setSample(int index, int val)
Definition: AudioChannel.h:26
int getChannelSize() const
Definition: AudioChannel.h:18
AudioChannel(int sampleCount)
Definition: AudioChannel.h:14