diff options
author | bunnei <bunneidev@gmail.com> | 2022-11-25 09:38:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-25 09:38:17 +0100 |
commit | 64965cc658a6266ddb9878ffd53bd69e0a0f5b79 (patch) | |
tree | 495b63ec25d2b5e8d5888004e5bca0dcdf67704b /src/core/hle/service/audio/audren_u.cpp | |
parent | Merge pull request #9194 from FernandoS27/yfc-fermi2d (diff) | |
parent | service: Make use of buffer element count helpers (diff) | |
download | yuzu-64965cc658a6266ddb9878ffd53bd69e0a0f5b79.tar yuzu-64965cc658a6266ddb9878ffd53bd69e0a0f5b79.tar.gz yuzu-64965cc658a6266ddb9878ffd53bd69e0a0f5b79.tar.bz2 yuzu-64965cc658a6266ddb9878ffd53bd69e0a0f5b79.tar.lz yuzu-64965cc658a6266ddb9878ffd53bd69e0a0f5b79.tar.xz yuzu-64965cc658a6266ddb9878ffd53bd69e0a0f5b79.tar.zst yuzu-64965cc658a6266ddb9878ffd53bd69e0a0f5b79.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/audio/audren_u.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hle/service/audio/audren_u.cpp b/src/core/hle/service/audio/audren_u.cpp index 13423dca6..034ee273f 100644 --- a/src/core/hle/service/audio/audren_u.cpp +++ b/src/core/hle/service/audio/audren_u.cpp @@ -274,7 +274,7 @@ public: private: void ListAudioDeviceName(Kernel::HLERequestContext& ctx) { - const size_t in_count = ctx.GetWriteBufferSize() / sizeof(AudioDevice::AudioDeviceName); + const size_t in_count = ctx.GetWriteBufferNumElements<AudioDevice::AudioDeviceName>(); std::vector<AudioDevice::AudioDeviceName> out_names{}; @@ -335,7 +335,7 @@ private: } void GetActiveAudioDeviceName(Kernel::HLERequestContext& ctx) { - const auto write_size = ctx.GetWriteBufferSize() / sizeof(char); + const auto write_size = ctx.GetWriteBufferSize(); std::string out_name{"AudioTvOutput"}; LOG_DEBUG(Service_Audio, "(STUBBED) called. Name={}", out_name); @@ -387,7 +387,7 @@ private: } void ListAudioOutputDeviceName(Kernel::HLERequestContext& ctx) { - const size_t in_count = ctx.GetWriteBufferSize() / sizeof(AudioDevice::AudioDeviceName); + const size_t in_count = ctx.GetWriteBufferNumElements<AudioDevice::AudioDeviceName>(); std::vector<AudioDevice::AudioDeviceName> out_names{}; |