mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-30 21:30:04 +00:00 
			
		
		
		
	Improve verbosity of audio errors with SDL_GetError()
This commit is contained in:
		
							parent
							
								
									2de470c9b2
								
							
						
					
					
						commit
						5dd31f204a
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -25,7 +25,7 @@ struct SDL2Sink::Impl { | ||||||
| 
 | 
 | ||||||
| SDL2Sink::SDL2Sink() : impl(std::make_unique<Impl>()) { | SDL2Sink::SDL2Sink() : impl(std::make_unique<Impl>()) { | ||||||
|     if (SDL_Init(SDL_INIT_AUDIO) < 0) { |     if (SDL_Init(SDL_INIT_AUDIO) < 0) { | ||||||
|         LOG_CRITICAL(Audio_Sink, "SDL_Init(SDL_INIT_AUDIO) failed"); |         LOG_CRITICAL(Audio_Sink, "SDL_Init(SDL_INIT_AUDIO) failed with: %s", SDL_GetError()); | ||||||
|         impl->audio_device_id = 0; |         impl->audio_device_id = 0; | ||||||
|         return; |         return; | ||||||
|     } |     } | ||||||
|  | @ -45,7 +45,7 @@ SDL2Sink::SDL2Sink() : impl(std::make_unique<Impl>()) { | ||||||
|     impl->audio_device_id = |     impl->audio_device_id = | ||||||
|         SDL_OpenAudioDevice(nullptr, false, &desired_audiospec, &obtained_audiospec, 0); |         SDL_OpenAudioDevice(nullptr, false, &desired_audiospec, &obtained_audiospec, 0); | ||||||
|     if (impl->audio_device_id <= 0) { |     if (impl->audio_device_id <= 0) { | ||||||
|         LOG_CRITICAL(Audio_Sink, "SDL_OpenAudioDevice failed"); |         LOG_CRITICAL(Audio_Sink, "SDL_OpenAudioDevice failed with: %s", SDL_GetError()); | ||||||
|         return; |         return; | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue