mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-01-31 11:23:21 +00:00
Codechange: Suppress compiler warning about signed/unsigned printf values
This commit is contained in:
parent
6ef1eaf1f5
commit
b8ec88f6af
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user