summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/mic_u.cpp
diff options
context:
space:
mode:
authorJonathan Hao <johnathan79717@gmail.com>2017-01-04 17:48:29 +0100
committerYuri Kunde Schlesner <yuriks@yuriks.net>2017-01-04 17:48:29 +0100
commitc18cb1b192d60499af3d68b244e86c8dd8f55200 (patch)
tree48c481884bb29dd7bde72694a6ed703bb416d7c3 /src/core/hle/service/mic_u.cpp
parentUpdate .travis.yml (diff)
downloadyuzu-c18cb1b192d60499af3d68b244e86c8dd8f55200.tar
yuzu-c18cb1b192d60499af3d68b244e86c8dd8f55200.tar.gz
yuzu-c18cb1b192d60499af3d68b244e86c8dd8f55200.tar.bz2
yuzu-c18cb1b192d60499af3d68b244e86c8dd8f55200.tar.lz
yuzu-c18cb1b192d60499af3d68b244e86c8dd8f55200.tar.xz
yuzu-c18cb1b192d60499af3d68b244e86c8dd8f55200.tar.zst
yuzu-c18cb1b192d60499af3d68b244e86c8dd8f55200.zip
Diffstat (limited to 'src/core/hle/service/mic_u.cpp')
-rw-r--r--src/core/hle/service/mic_u.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/hle/service/mic_u.cpp b/src/core/hle/service/mic_u.cpp
index 4f1dd2fce..c62f8afc6 100644
--- a/src/core/hle/service/mic_u.cpp
+++ b/src/core/hle/service/mic_u.cpp
@@ -99,7 +99,8 @@ static void StartSampling(Interface* self) {
is_sampling = true;
LOG_WARNING(Service_MIC, "(STUBBED) called, encoding=%u, sample_rate=%u, "
"audio_buffer_offset=%d, audio_buffer_size=%u, audio_buffer_loop=%u",
- encoding, sample_rate, audio_buffer_offset, audio_buffer_size, audio_buffer_loop);
+ static_cast<u32>(encoding), static_cast<u32>(sample_rate), audio_buffer_offset,
+ audio_buffer_size, audio_buffer_loop);
}
/**
@@ -114,7 +115,7 @@ static void AdjustSampling(Interface* self) {
u32* cmd_buff = Kernel::GetCommandBuffer();
sample_rate = static_cast<SampleRate>(cmd_buff[1] & 0xFF);
cmd_buff[1] = RESULT_SUCCESS.raw; // No error
- LOG_WARNING(Service_MIC, "(STUBBED) called, sample_rate=%u", sample_rate);
+ LOG_WARNING(Service_MIC, "(STUBBED) called, sample_rate=%u", static_cast<u32>(sample_rate));
}
/**