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_system.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 '')
-rw-r--r-- | src/audio_core/out/audio_out_system.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/audio_core/out/audio_out_system.cpp b/src/audio_core/out/audio_out_system.cpp index ae605f65b..8b907590a 100644 --- a/src/audio_core/out/audio_out_system.cpp +++ b/src/audio_core/out/audio_out_system.cpp @@ -27,11 +27,12 @@ void System::Finalize() { buffer_event->GetWritableEvent().Signal(); } -std::string_view System::GetDefaultOutputDeviceName() { +std::string_view System::GetDefaultOutputDeviceName() const { return "DeviceOut"; } -Result System::IsConfigValid(std::string_view device_name, const AudioOutParameter& in_params) { +Result System::IsConfigValid(std::string_view device_name, + const AudioOutParameter& in_params) const { if ((device_name.size() > 0) && (device_name != GetDefaultOutputDeviceName())) { return Service::Audio::ERR_INVALID_DEVICE_NAME; } @@ -200,11 +201,11 @@ void System::SetVolume(const f32 volume_) { session->SetVolume(volume_); } -bool System::ContainsAudioBuffer(const u64 tag) { +bool System::ContainsAudioBuffer(const u64 tag) const { return buffers.ContainsBuffer(tag); } -u32 System::GetBufferCount() { +u32 System::GetBufferCount() const { return buffers.GetAppendedRegisteredCount(); } |