diff options
author | Charles Pigott <charlespigott@googlemail.com> | 2020-11-25 23:36:50 +0000 |
---|---|---|
committer | Charles Pigott <charlespigott@googlemail.com> | 2020-11-26 19:06:03 +0000 |
commit | b8ec88f6afcceb01cc8ce10ae3d91a986923baff (patch) | |
tree | c5f4367ffccb3dbfc99f86197bfbf90f0ddfd678 | |
parent | 6ef1eaf1f596c2d034043ea032f6a22ebcff0e2d (diff) | |
download | openttd-b8ec88f6afcceb01cc8ce10ae3d91a986923baff.tar.xz |
Codechange: Suppress compiler warning about signed/unsigned printf values
-rw-r--r-- | src/sound/xaudio2_s.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/sound/xaudio2_s.cpp b/src/sound/xaudio2_s.cpp index e89e28a78..bd47b2065 100644 --- a/src/sound/xaudio2_s.cpp +++ b/src/sound/xaudio2_s.cpp @@ -130,7 +130,7 @@ const char *SoundDriver_XAudio2::Start(const StringList &parm) if (FAILED(hr)) { - DEBUG(driver, 0, "xaudio2_s: CoInitializeEx failed (%08x)", hr); + DEBUG(driver, 0, "xaudio2_s: CoInitializeEx failed (%08x)", (uint)hr); return "Failed to initialise COM"; } @@ -164,7 +164,7 @@ const char *SoundDriver_XAudio2::Start(const StringList &parm) FreeLibrary(_xaudio_dll_handle); CoUninitialize(); - DEBUG(driver, 0, "xaudio2_s: XAudio2Create failed (%08x)", hr); + DEBUG(driver, 0, "xaudio2_s: XAudio2Create failed (%08x)", (uint)hr); return "Failed to inititialise the XAudio2 engine"; } @@ -177,7 +177,7 @@ const char *SoundDriver_XAudio2::Start(const StringList &parm) FreeLibrary(_xaudio_dll_handle); CoUninitialize(); - DEBUG(driver, 0, "xaudio2_s: CreateMasteringVoice failed (%08x)", hr); + DEBUG(driver, 0, "xaudio2_s: CreateMasteringVoice failed (%08x)", (uint)hr); return "Failed to create a mastering voice"; } @@ -216,7 +216,7 @@ const char *SoundDriver_XAudio2::Start(const StringList &parm) FreeLibrary(_xaudio_dll_handle); CoUninitialize(); - DEBUG(driver, 0, "xaudio2_s: CreateSourceVoice failed (%08x)", hr); + DEBUG(driver, 0, "xaudio2_s: CreateSourceVoice failed (%08x)", (uint)hr); return "Failed to create a source voice"; } @@ -225,7 +225,7 @@ const char *SoundDriver_XAudio2::Start(const StringList &parm) if (FAILED(hr)) { - DEBUG(driver, 0, "xaudio2_s: _source_voice->Start failed (%08x)", hr); + DEBUG(driver, 0, "xaudio2_s: _source_voice->Start failed (%08x)", (uint)hr); Stop(); return "Failed to start the source voice"; @@ -238,7 +238,7 @@ const char *SoundDriver_XAudio2::Start(const StringList &parm) if (FAILED(hr)) { - DEBUG(driver, 0, "xaudio2_s: _voice_context->SubmitBuffer failed (%08x)", hr); + DEBUG(driver, 0, "xaudio2_s: _voice_context->SubmitBuffer failed (%08x)", (uint)hr); Stop(); return "Failed to submit the first audio buffer"; |