audiorenderer: fill destination buffer with zeroes before copying samples over

Ensures no uninitialized values end up in the audio cache.
This commit is contained in:
itsmattkc
2020-04-05 13:29:04 +10:00
parent 5b48c1ceb0
commit e3a8d32e4a
3 changed files with 61 additions and 23 deletions
+7
View File
@@ -37,6 +37,7 @@ public:
void set_sample_count_per_channel(const int &sample_count_per_channel);
float** data();
const float** const_data() const;
float* channel_data(int channel);
float* sample_data(int index);
@@ -47,6 +48,12 @@ public:
void reverse();
void speed(double speed);
void fill(const float& f);
void fill(const float& f, int start_sample, int end_sample);
void set(const float** data, int sample_offset, int sample_length);
void set(const float** data, int sample_length);
QByteArray toPackedData() const;
private: