audio: optimized setting silence
I don't know why I thought we'd ever need a "fill" function for samples, but now that I've accepted we don't, this is so much faster.
This commit is contained in:
@@ -77,8 +77,8 @@ public:
|
||||
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);
|
||||
void silence();
|
||||
void silence(int start_sample, int end_sample);
|
||||
|
||||
void set(int channel, const float* data, int sample_offset, int sample_length);
|
||||
void set(int channel, const float* data, int sample_length)
|
||||
|
||||
Reference in New Issue
Block a user