diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-04-19 14:03:20 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-04-20 22:12:46 +0200 |
| commit | 341ba1115b6285fec998901e50f9afb48bcaeeb6 (patch) | |
| tree | 53d64b4e7a374c21c4839aa888f7d195ca865210 /src/lib/audio_analyser.cc | |
| parent | aba8cb303255a5d72ee17ca072d3ae31b7832af4 (diff) | |
Use std::vector in AudioBuffers (#2236).
Diffstat (limited to 'src/lib/audio_analyser.cc')
| -rw-r--r-- | src/lib/audio_analyser.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/audio_analyser.cc b/src/lib/audio_analyser.cc index 53d764a9b..755d6e9b0 100644 --- a/src/lib/audio_analyser.cc +++ b/src/lib/audio_analyser.cc @@ -134,7 +134,7 @@ AudioAnalyser::~AudioAnalyser () void -AudioAnalyser::analyse (shared_ptr<const AudioBuffers> b, DCPTime time) +AudioAnalyser::analyse (shared_ptr<AudioBuffers> b, DCPTime time) { LOG_DEBUG_AUDIO_ANALYSIS("Received %1 frames at %2", b->frames(), to_string(time)); DCPOMATIC_ASSERT (time >= _start); @@ -150,7 +150,7 @@ AudioAnalyser::analyse (shared_ptr<const AudioBuffers> b, DCPTime time) vector<double> interleaved(frames * channels); for (int j = 0; j < channels; ++j) { - float* data = b->data(j); + float const* data = b->data(j); for (int i = 0; i < frames; ++i) { float s = data[i]; |
