PulseAudio: consistent use of _buffer

For consistency and readability, avoid using high level getter in low
level code.
This commit is contained in:
Mads Kiilerich 2022-10-30 21:02:16 +01:00 committed by Robin Gareus
parent 51501e5532
commit 5bb7336c79
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
1 changed files with 1 additions and 1 deletions

View File

@ -1233,7 +1233,7 @@ PulseAudioPort::get_buffer (pframes_t n_samples)
while (++it != connections.end ()) {
source = boost::dynamic_pointer_cast<PulseAudioPort> (*it);
assert (source && source->is_output ());
Sample* dst = buffer ();
Sample* dst = _buffer;
const Sample* src = source->const_buffer ();
for (uint32_t s = 0; s < n_samples; ++s, ++dst, ++src) {
*dst += *src;