diff options
author | Marcelo Fernandez <marcelofg55@gmail.com> | 2019-02-22 10:50:39 -0300 |
---|---|---|
committer | Marcelo Fernandez <marcelofg55@gmail.com> | 2019-02-22 14:56:15 -0300 |
commit | 548a66a621ded3a0b8b1f16f1865180041cc2e34 (patch) | |
tree | f9c020cbf9179cb6b92633fa8fa494594bb3faad /drivers | |
parent | edbf1d0ea49517be80e514595fc71d7069423edb (diff) |
Extended WASAPI Initialize error message
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/wasapi/audio_driver_wasapi.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/wasapi/audio_driver_wasapi.cpp b/drivers/wasapi/audio_driver_wasapi.cpp index 38012f8f76..685e821389 100644 --- a/drivers/wasapi/audio_driver_wasapi.cpp +++ b/drivers/wasapi/audio_driver_wasapi.cpp @@ -270,6 +270,7 @@ Error AudioDriverWASAPI::audio_device_init(AudioDeviceWASAPI *p_device, bool p_c } hr = p_device->audio_client->Initialize(AUDCLNT_SHAREMODE_SHARED, streamflags, p_capture ? REFTIMES_PER_SEC : 0, 0, pwfex, NULL); + ERR_EXPLAIN("WASAPI: Initialize failed with error 0x" + String::num_uint64(hr, 16)); ERR_FAIL_COND_V(hr != S_OK, ERR_CANT_OPEN); if (p_capture) { |