mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-30 21:30:04 +00:00 
			
		
		
		
	fix build error with modern openal-soft
This commit is contained in:
		
							parent
							
								
									0500b993e0
								
							
						
					
					
						commit
						b90569700c
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		|  | @ -73,8 +73,9 @@ OpenALSink::OpenALSink(std::string device_name) : impl(std::make_unique<Impl>()) | ||||||
| 
 | 
 | ||||||
|     auto alBufferCallbackSOFT = |     auto alBufferCallbackSOFT = | ||||||
|         reinterpret_cast<LPALBUFFERCALLBACKSOFT>(alGetProcAddress("alBufferCallbackSOFT")); |         reinterpret_cast<LPALBUFFERCALLBACKSOFT>(alGetProcAddress("alBufferCallbackSOFT")); | ||||||
|     alBufferCallbackSOFT(impl->buffer, AL_FORMAT_STEREO16, native_sample_rate, &Impl::Callback, |     alBufferCallbackSOFT(impl->buffer, AL_FORMAT_STEREO16, native_sample_rate, | ||||||
|                          impl.get()); |                          reinterpret_cast<ALBUFFERCALLBACKTYPESOFT>(&Impl::Callback), impl.get()); | ||||||
|  | 
 | ||||||
|     if (alGetError() != AL_NO_ERROR) { |     if (alGetError() != AL_NO_ERROR) { | ||||||
|         LOG_CRITICAL(Audio_Sink, "alBufferCallbackSOFT failed: {}", alGetError()); |         LOG_CRITICAL(Audio_Sink, "alBufferCallbackSOFT failed: {}", alGetError()); | ||||||
|         Close(); |         Close(); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue