diff options
author | Andrzej Rybczak <andrzej@rybczak.net> | 2021-01-11 20:56:43 +0100 |
---|---|---|
committer | Andrzej Rybczak <andrzej@rybczak.net> | 2021-01-11 20:56:43 +0100 |
commit | 07cc7aa4f3d00625f6a6561591e31695d776d461 (patch) | |
tree | fc257a7d1b855649d67032599ece08674a4c705e | |
parent | b902a2a6bf79963c6d7299b5e9ec7788ff792daf (diff) |
SampleBuffer: rename move to get
-rw-r--r-- | src/screens/visualizer.cpp | 2 | ||||
-rw-r--r-- | src/utility/sample_buffer.cpp | 2 | ||||
-rw-r--r-- | src/utility/sample_buffer.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/screens/visualizer.cpp b/src/screens/visualizer.cpp index d027d548..26eac7bf 100644 --- a/src/screens/visualizer.cpp +++ b/src/screens/visualizer.cpp @@ -190,7 +190,7 @@ void Visualizer::update() //Statusbar::printf("Samples: %1%, %2%, %3%", m_buffered_samples.size(), // requested_samples, m_sample_consumption_rate); - size_t new_samples = m_buffered_samples.move(requested_samples, m_rendered_samples); + size_t new_samples = m_buffered_samples.get(requested_samples, m_rendered_samples); if (new_samples == 0) return; diff --git a/src/utility/sample_buffer.cpp b/src/utility/sample_buffer.cpp index 8e916811..3cf5c648 100644 --- a/src/utility/sample_buffer.cpp +++ b/src/utility/sample_buffer.cpp @@ -40,7 +40,7 @@ void SampleBuffer::put(SampleBuffer::Iterator begin, SampleBuffer::Iterator end) m_offset += elems; } -size_t SampleBuffer::move(size_t elems, std::vector<int16_t> &dest) +size_t SampleBuffer::get(size_t elems, std::vector<int16_t> &dest) { if (m_offset == 0) return 0; diff --git a/src/utility/sample_buffer.h b/src/utility/sample_buffer.h index d90247e1..fa6fcfd7 100644 --- a/src/utility/sample_buffer.h +++ b/src/utility/sample_buffer.h @@ -31,7 +31,7 @@ struct SampleBuffer SampleBuffer() : m_offset(0) { } void put(Iterator begin, Iterator end); - size_t move(size_t elems, std::vector<int16_t> &dest); + size_t get(size_t elems, std::vector<int16_t> &dest); void resize(size_t n); void clear(); |