implement audio device to pull directly from renderer

This commit is contained in:
itsmattkc
2021-09-25 12:44:58 -07:00
parent 35873dce01
commit 4c9863a696
14 changed files with 336 additions and 145 deletions
+1 -5
View File
@@ -246,13 +246,9 @@ QByteArray SampleBuffer::toPackedData() const
float* output_data = reinterpret_cast<float*>(packed_data.data());
int output_index = 0;
for (int j=0;j<sample_count_per_channel_;j++) {
for (int i=0;i<audio_params_.channel_count();i++) {
output_data[output_index] = data_[i][j];
output_index++;
output_data[i*j + i] = data_[i][j];
}
}
}