diff options
author | Lioncash <mathew1800@gmail.com> | 2022-09-16 15:38:17 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2022-09-16 15:45:51 +0200 |
commit | d1f3c121a04fdc1e4d8840ef6a5bbb65212ed7a7 (patch) | |
tree | c5f475b24fa39614aa9257d248928fb51b152520 /src/audio_core/out/audio_out.cpp | |
parent | audio_buffers: Pass by const-ref in AppendBuffers (diff) | |
download | yuzu-d1f3c121a04fdc1e4d8840ef6a5bbb65212ed7a7.tar yuzu-d1f3c121a04fdc1e4d8840ef6a5bbb65212ed7a7.tar.gz yuzu-d1f3c121a04fdc1e4d8840ef6a5bbb65212ed7a7.tar.bz2 yuzu-d1f3c121a04fdc1e4d8840ef6a5bbb65212ed7a7.tar.lz yuzu-d1f3c121a04fdc1e4d8840ef6a5bbb65212ed7a7.tar.xz yuzu-d1f3c121a04fdc1e4d8840ef6a5bbb65212ed7a7.tar.zst yuzu-d1f3c121a04fdc1e4d8840ef6a5bbb65212ed7a7.zip |
Diffstat (limited to 'src/audio_core/out/audio_out.cpp')
-rw-r--r-- | src/audio_core/out/audio_out.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/audio_core/out/audio_out.cpp b/src/audio_core/out/audio_out.cpp index 9a8d8a742..d3ee4f0eb 100644 --- a/src/audio_core/out/audio_out.cpp +++ b/src/audio_core/out/audio_out.cpp @@ -72,7 +72,7 @@ Kernel::KReadableEvent& Out::GetBufferEvent() { return event->GetReadableEvent(); } -f32 Out::GetVolume() { +f32 Out::GetVolume() const { std::scoped_lock l{parent_mutex}; return system.GetVolume(); } @@ -82,17 +82,17 @@ void Out::SetVolume(const f32 volume) { system.SetVolume(volume); } -bool Out::ContainsAudioBuffer(const u64 tag) { +bool Out::ContainsAudioBuffer(const u64 tag) const { std::scoped_lock l{parent_mutex}; return system.ContainsAudioBuffer(tag); } -u32 Out::GetBufferCount() { +u32 Out::GetBufferCount() const { std::scoped_lock l{parent_mutex}; return system.GetBufferCount(); } -u64 Out::GetPlayedSampleCount() { +u64 Out::GetPlayedSampleCount() const { std::scoped_lock l{parent_mutex}; return system.GetPlayedSampleCount(); } |