diff options
author | Morph <39850852+Morph1984@users.noreply.github.com> | 2022-09-16 16:18:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-16 16:18:58 +0200 |
commit | 60aa9422101267c175e8604adf0d5e6a1ce7bdcd (patch) | |
tree | 1568ae6f68c98d9e4d52744493bd4668f7695fde /src/core | |
parent | Merge pull request #8878 from Kelebek1/remove_pause (diff) | |
parent | audio_device: Mark member functions as const where applicable (diff) | |
download | yuzu-60aa9422101267c175e8604adf0d5e6a1ce7bdcd.tar yuzu-60aa9422101267c175e8604adf0d5e6a1ce7bdcd.tar.gz yuzu-60aa9422101267c175e8604adf0d5e6a1ce7bdcd.tar.bz2 yuzu-60aa9422101267c175e8604adf0d5e6a1ce7bdcd.tar.lz yuzu-60aa9422101267c175e8604adf0d5e6a1ce7bdcd.tar.xz yuzu-60aa9422101267c175e8604adf0d5e6a1ce7bdcd.tar.zst yuzu-60aa9422101267c175e8604adf0d5e6a1ce7bdcd.zip |
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/hle/service/audio/audout_u.cpp | 3 | ||||
-rw-r--r-- | src/core/hle/service/audio/audren_u.cpp | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/src/core/hle/service/audio/audout_u.cpp b/src/core/hle/service/audio/audout_u.cpp index a44dd842a..49c092301 100644 --- a/src/core/hle/service/audio/audout_u.cpp +++ b/src/core/hle/service/audio/audout_u.cpp @@ -246,9 +246,8 @@ void AudOutU::ListAudioOuts(Kernel::HLERequestContext& ctx) { const auto write_count = static_cast<u32>(ctx.GetWriteBufferSize() / sizeof(AudioDevice::AudioDeviceName)); std::vector<AudioDevice::AudioDeviceName> device_names{}; - std::string print_names{}; if (write_count > 0) { - device_names.push_back(AudioDevice::AudioDeviceName("DeviceOut")); + device_names.emplace_back("DeviceOut"); LOG_DEBUG(Service_Audio, "called. \nName=DeviceOut"); } else { LOG_DEBUG(Service_Audio, "called. Empty buffer passed in."); diff --git a/src/core/hle/service/audio/audren_u.cpp b/src/core/hle/service/audio/audren_u.cpp index bc69117c6..6fb07c37d 100644 --- a/src/core/hle/service/audio/audren_u.cpp +++ b/src/core/hle/service/audio/audren_u.cpp @@ -252,7 +252,7 @@ private: std::vector<AudioDevice::AudioDeviceName> out_names{}; - u32 out_count = impl->ListAudioDeviceName(out_names, in_count); + const u32 out_count = impl->ListAudioDeviceName(out_names, in_count); std::string out{}; for (u32 i = 0; i < out_count; i++) { @@ -365,7 +365,7 @@ private: std::vector<AudioDevice::AudioDeviceName> out_names{}; - u32 out_count = impl->ListAudioOutputDeviceName(out_names, in_count); + const u32 out_count = impl->ListAudioOutputDeviceName(out_names, in_count); std::string out{}; for (u32 i = 0; i < out_count; i++) { |