samplebuffer: added convenience functions for altering sample data
This commit is contained in:
@@ -60,7 +60,6 @@ public:
|
||||
float** data();
|
||||
const float** const_data() const;
|
||||
float* channel_data(int channel);
|
||||
float* sample_data(int index);
|
||||
|
||||
bool is_allocated() const;
|
||||
void allocate();
|
||||
@@ -68,6 +67,10 @@ public:
|
||||
|
||||
void reverse();
|
||||
void speed(double speed);
|
||||
void transform_volume(float f);
|
||||
void transform_volume_for_channel(int channel, float volume);
|
||||
void transform_volume_for_sample(int sample_index, float volume);
|
||||
void transform_volume_for_sample_on_channel(int sample_index, int channel, float volume);
|
||||
|
||||
void fill(const float& f);
|
||||
void fill(const float& f, int start_sample, int end_sample);
|
||||
|
||||
Reference in New Issue
Block a user