audio_buffers: Pass by const-ref in AppendBuffers
This function doesn't modify the passed in buffer, so we can make that explicit.
This commit is contained in:
parent
cb2a33babc
commit
e9109cb5f2
3 changed files with 17 additions and 13 deletions
|
@ -36,7 +36,7 @@ public:
|
|||
*
|
||||
* @param buffer - The new buffer.
|
||||
*/
|
||||
void AppendBuffer(AudioBuffer& buffer) {
|
||||
void AppendBuffer(const AudioBuffer& buffer) {
|
||||
std::scoped_lock l{lock};
|
||||
buffers[appended_index] = buffer;
|
||||
appended_count++;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue