summaryrefslogtreecommitdiffstats
path: root/src/audio_core/device/audio_buffers.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2022-09-17 08:51:31 +0200
committerGitHub <noreply@github.com>2022-09-17 08:51:31 +0200
commit4a7a7713401983f94b6c07fa07cbbbfa4025556c (patch)
treeee9f4cac999d8c4f7e5c1d5d51e624ff82580607 /src/audio_core/device/audio_buffers.h
parentMerge pull request #8916 from Docteh/muilti_build (diff)
parentaudio_renderer: Pass command buffer by const reference (diff)
downloadyuzu-4a7a7713401983f94b6c07fa07cbbbfa4025556c.tar
yuzu-4a7a7713401983f94b6c07fa07cbbbfa4025556c.tar.gz
yuzu-4a7a7713401983f94b6c07fa07cbbbfa4025556c.tar.bz2
yuzu-4a7a7713401983f94b6c07fa07cbbbfa4025556c.tar.lz
yuzu-4a7a7713401983f94b6c07fa07cbbbfa4025556c.tar.xz
yuzu-4a7a7713401983f94b6c07fa07cbbbfa4025556c.tar.zst
yuzu-4a7a7713401983f94b6c07fa07cbbbfa4025556c.zip
Diffstat (limited to 'src/audio_core/device/audio_buffers.h')
-rw-r--r--src/audio_core/device/audio_buffers.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/audio_core/device/audio_buffers.h b/src/audio_core/device/audio_buffers.h
index 3ecbbb63f..3dae1a3b7 100644
--- a/src/audio_core/device/audio_buffers.h
+++ b/src/audio_core/device/audio_buffers.h
@@ -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++;
@@ -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) {