Browse Source

If WASAPI driver not initialized, fail the init

Xavier Sellier 6 years ago
parent
commit
ea595c2290
1 changed files with 1 additions and 0 deletions
  1. 1 0
      drivers/wasapi/audio_driver_wasapi.cpp

+ 1 - 0
drivers/wasapi/audio_driver_wasapi.cpp

@@ -243,6 +243,7 @@ Error AudioDriverWASAPI::init() {
 	Error err = init_device();
 	if (err != OK) {
 		ERR_PRINT("WASAPI: init_device error");
+		ERR_FAIL_V(err);
 	}
 
 	active = false;