diff options
author | Lioncash <mathew1800@gmail.com> | 2018-07-20 05:09:35 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-07-20 05:15:27 +0200 |
commit | 40c9c5a55c7c9e00d96f55b1cd898a51120451fe (patch) | |
tree | 07a30ff9df82ba098372edeeb9502f8c64d09685 /src | |
parent | audout_u: Use a std::array instead of std::string for holding the audio interface name (diff) | |
download | yuzu-40c9c5a55c7c9e00d96f55b1cd898a51120451fe.tar yuzu-40c9c5a55c7c9e00d96f55b1cd898a51120451fe.tar.gz yuzu-40c9c5a55c7c9e00d96f55b1cd898a51120451fe.tar.bz2 yuzu-40c9c5a55c7c9e00d96f55b1cd898a51120451fe.tar.lz yuzu-40c9c5a55c7c9e00d96f55b1cd898a51120451fe.tar.xz yuzu-40c9c5a55c7c9e00d96f55b1cd898a51120451fe.tar.zst yuzu-40c9c5a55c7c9e00d96f55b1cd898a51120451fe.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/core/hle/service/audio/audren_u.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
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); |