device_session: Pass arguments by const-ref in relevant functions

These functions don't modify the passed in audio buffers, so we can
signify that in the interface.
This commit is contained in:
Lioncash
2022-09-16 09:29:28 -04:00
parent e85bda5f31
commit a278fa6e2a
3 changed files with 7 additions and 7 deletions

View File

@ -93,7 +93,7 @@ public:
*
* @return Is the buffer was released.
*/
bool ReleaseBuffers(Core::Timing::CoreTiming& core_timing, DeviceSession& session) {
bool ReleaseBuffers(const Core::Timing::CoreTiming& core_timing, const DeviceSession& session) {
std::scoped_lock l{lock};
bool buffer_released{false};
while (registered_count > 0) {