diff options
author | bunnei <bunneidev@gmail.com> | 2018-07-20 18:17:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-20 18:17:07 +0200 |
commit | 701c7cb85ce48f627f422f593843fa692f785236 (patch) | |
tree | 65030bd5eaa71479c8db3f23c87496a020e16d75 /src/core | |
parent | Merge pull request #735 from lioncash/video-unused (diff) | |
parent | audren_u: Use a std::array instead of std::string for holding the audio interface/device name (diff) | |
download | yuzu-701c7cb85ce48f627f422f593843fa692f785236.tar yuzu-701c7cb85ce48f627f422f593843fa692f785236.tar.gz yuzu-701c7cb85ce48f627f422f593843fa692f785236.tar.bz2 yuzu-701c7cb85ce48f627f422f593843fa692f785236.tar.lz yuzu-701c7cb85ce48f627f422f593843fa692f785236.tar.xz yuzu-701c7cb85ce48f627f422f593843fa692f785236.tar.zst yuzu-701c7cb85ce48f627f422f593843fa692f785236.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 | 6 |
2 files changed, 6 insertions, 3 deletions
diff --git a/src/core/hle/service/audio/audout_u.cpp b/src/core/hle/service/audio/audout_u.cpp index 4217ea4fb..154bc12da 100644 --- a/src/core/hle/service/audio/audout_u.cpp +++ b/src/core/hle/service/audio/audout_u.cpp @@ -2,6 +2,7 @@ // Licensed under GPLv2 or any later version // Refer to the license.txt file included. +#include <array> #include <vector> #include "common/logging/log.h" #include "core/core_timing.h" @@ -167,7 +168,7 @@ void AudOutU::ListAudioOutsImpl(Kernel::HLERequestContext& ctx) { LOG_WARNING(Service_Audio, "(STUBBED) called"); IPC::RequestParser rp{ctx}; - const std::string audio_interface = "AudioInterface"; + constexpr std::array<char, 15> audio_interface{{"AudioInterface"}}; ctx.WriteBuffer(audio_interface); IPC::ResponseBuilder rb = rp.MakeBuilder(3, 0, 0); diff --git a/src/core/hle/service/audio/audren_u.cpp b/src/core/hle/service/audio/audren_u.cpp index 6903f52d6..e623f4f8e 100644 --- a/src/core/hle/service/audio/audren_u.cpp +++ b/src/core/hle/service/audio/audren_u.cpp @@ -2,6 +2,8 @@ // Licensed under GPLv2 or any later version // Refer to the license.txt file included. +#include <array> + #include "common/alignment.h" #include "common/logging/log.h" #include "core/core_timing.h" @@ -298,7 +300,7 @@ private: LOG_WARNING(Service_Audio, "(STUBBED) called"); IPC::RequestParser rp{ctx}; - const std::string audio_interface = "AudioInterface"; + constexpr std::array<char, 15> audio_interface{{"AudioInterface"}}; ctx.WriteBuffer(audio_interface); IPC::ResponseBuilder rb = rp.MakeBuilder(3, 0, 0); @@ -323,7 +325,7 @@ private: LOG_WARNING(Service_Audio, "(STUBBED) called"); IPC::RequestParser rp{ctx}; - const std::string audio_interface = "AudioDevice"; + constexpr std::array<char, 12> audio_interface{{"AudioDevice"}}; ctx.WriteBuffer(audio_interface); IPC::ResponseBuilder rb = rp.MakeBuilder(3, 0, 0); |