 eb056218a1
			
		
	
	
		eb056218a1
		
			
		
	
	
	
	
		
			
			* audio: Implement a SDL2 backend This adds support to SDL2 as an audio backend. It has the same compatibility level as OpenAL without its issues. I also took the liberty of restructuring the SDL2 code to have one shared project between audio and input. The configuration version was also incremented. * Address gdkchan's comments * Fix update logic * Add an heuristic to pick the correct target sample count wanted by the game * Address gdkchan's comments * Address Ac_k's comments * Fix audren output * Address gdkchan's comments
		
			
				
	
	
		
			16 lines
		
	
	
	
		
			422 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
	
		
			422 B
		
	
	
	
		
			C#
		
	
	
	
	
	
| namespace Ryujinx.Audio.Backends.SDL2
 | |
| {
 | |
|     class SDL2AudioBuffer
 | |
|     {
 | |
|         public readonly ulong DriverIdentifier;
 | |
|         public readonly ulong SampleCount;
 | |
|         public ulong SamplePlayed;
 | |
| 
 | |
|         public SDL2AudioBuffer(ulong driverIdentifier, ulong sampleCount)
 | |
|         {
 | |
|             DriverIdentifier = driverIdentifier;
 | |
|             SampleCount = sampleCount;
 | |
|             SamplePlayed = 0;
 | |
|         }
 | |
|     }
 | |
| }
 |