mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-30 21:30:04 +00:00 
			
		
		
		
	sdl2_sink: remove SDL_AUDIO_ALLOW_FREQUENCY_CHANGE flag
this is necessary for sdl audio to work properly in sdl as of current dev version (2.0.15)
This commit is contained in:
		
							parent
							
								
									edbd6dfe8a
								
							
						
					
					
						commit
						350c9c8d7d
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -46,8 +46,8 @@ SDL2Sink::SDL2Sink(std::string device_name) : impl(std::make_unique<Impl>()) { | ||||||
|         device = device_name.c_str(); |         device = device_name.c_str(); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     impl->audio_device_id = SDL_OpenAudioDevice( |     impl->audio_device_id = | ||||||
|         device, false, &desired_audiospec, &obtained_audiospec, SDL_AUDIO_ALLOW_FREQUENCY_CHANGE); |         SDL_OpenAudioDevice(device, 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 with code {} for device \"{}\"", |         LOG_CRITICAL(Audio_Sink, "SDL_OpenAudioDevice failed with code {} for device \"{}\"", | ||||||
|                      impl->audio_device_id, device_name); |                      impl->audio_device_id, device_name); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue