diff options
Diffstat (limited to 'test/dcp_test.cc')
| -rw-r--r-- | test/dcp_test.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test/dcp_test.cc b/test/dcp_test.cc index 63de990f..61cfa711 100644 --- a/test/dcp_test.cc +++ b/test/dcp_test.cc @@ -215,21 +215,21 @@ test_rewriting_sound(string name, bool modify) bool need_to_modify = modify; for (int i = 0; i < A_sound->asset()->intrinsic_duration(); ++i) { auto sf = reader->get_frame (i); - float* out[sf->channels()]; - for (int j = 0; j < sf->channels(); ++j) { - out[j] = new float[sf->samples()]; + float* out[sf.channels()]; + for (int j = 0; j < sf.channels(); ++j) { + out[j] = new float[sf.samples()]; } - for (int j = 0; j < sf->samples(); ++j) { - for (int k = 0; k < sf->channels(); ++k) { - out[k][j] = static_cast<float>(sf->get(k, j)) / (1 << 23); + for (int j = 0; j < sf.samples(); ++j) { + for (int k = 0; k < sf.channels(); ++k) { + out[k][j] = static_cast<float>(sf.get(k, j)) / (1 << 23); if (need_to_modify) { out[k][j] += 1.0 / (1 << 23); need_to_modify = false; } } } - writer->write(out, sf->channels(), sf->samples()); - for (int j = 0; j < sf->channels(); ++j) { + writer->write(out, sf.channels(), sf.samples()); + for (int j = 0; j < sf.channels(); ++j) { delete[] out[j]; } } |
