summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service
diff options
context:
space:
mode:
authorDavid Marcec <dmarcecguzman@gmail.com>2020-04-28 16:43:05 +0200
committerDavid Marcec <dmarcecguzman@gmail.com>2020-04-28 16:43:05 +0200
commit1276e425d2e1cd0f80c6b7872a56956d5e2a985b (patch)
tree56cc81f3d400ece7abf823a2ef6854e9b93cd0fa /src/core/hle/service
parentAudin:u ListAudioIns, OpenAudioIn, ListAudioInsAuto, OpenAudioInAuto, ListAudioInsAutoFiltered, OpenAudioInProtocolSpecified (diff)
downloadyuzu-1276e425d2e1cd0f80c6b7872a56956d5e2a985b.tar
yuzu-1276e425d2e1cd0f80c6b7872a56956d5e2a985b.tar.gz
yuzu-1276e425d2e1cd0f80c6b7872a56956d5e2a985b.tar.bz2
yuzu-1276e425d2e1cd0f80c6b7872a56956d5e2a985b.tar.lz
yuzu-1276e425d2e1cd0f80c6b7872a56956d5e2a985b.tar.xz
yuzu-1276e425d2e1cd0f80c6b7872a56956d5e2a985b.tar.zst
yuzu-1276e425d2e1cd0f80c6b7872a56956d5e2a985b.zip
Diffstat (limited to 'src/core/hle/service')
-rw-r--r--src/core/hle/service/audio/audin_u.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/core/hle/service/audio/audin_u.cpp b/src/core/hle/service/audio/audin_u.cpp
index bce7e61dd..3e2299426 100644
--- a/src/core/hle/service/audio/audin_u.cpp
+++ b/src/core/hle/service/audio/audin_u.cpp
@@ -57,8 +57,9 @@ void AudInU::ListAudioIns(Kernel::HLERequestContext& ctx) {
LOG_DEBUG(Service_Audio, "called");
const std::size_t count = ctx.GetWriteBufferSize() / sizeof(AudioInDeviceName);
- std::vector<AudioInDeviceName> device_names;
const std::size_t device_count = std::min(count, audio_device_names.size());
+ std::vector<AudioInDeviceName> device_names;
+ device_names.reserve(device_count);
for (std::size_t i = 0; i < device_count; i++) {
const auto& device_name = audio_device_names[i];
@@ -75,7 +76,7 @@ void AudInU::ListAudioIns(Kernel::HLERequestContext& ctx) {
void AudInU::ListAudioInsAutoFiltered(Kernel::HLERequestContext& ctx) {
LOG_DEBUG(Service_Audio, "called");
- const u32 device_count = 0;
+ constexpr u32 device_count = 0;
// Since we don't actually use any other audio input devices, we return 0 devices. Filtered
// device listing just omits the default input device
@@ -99,12 +100,12 @@ void AudInU::OpenInOutImpl(Kernel::HLERequestContext& ctx) {
}
void AudInU::OpenAudioIn(Kernel::HLERequestContext& ctx) {
- LOG_WARNING(Service_Audio, "called");
+ LOG_WARNING(Service_Audio, "(STUBBED) called");
OpenInOutImpl(ctx);
}
void AudInU::OpenAudioInProtocolSpecified(Kernel::HLERequestContext& ctx) {
- LOG_WARNING(Service_Audio, "called");
+ LOG_WARNING(Service_Audio, "(STUBBED) called");
OpenInOutImpl(ctx);
}