mirror of
				https://github.com/alsa-project/alsa-lib.git
				synced 2025-11-03 09:01:52 -05:00 
			
		
		
		
	Fixed silence_64 and added support for 24-bit samples to area_silence
This commit is contained in:
		
							parent
							
								
									fe58dd62eb
								
							
						
					
					
						commit
						2db6b18b39
					
				
					 3 changed files with 44 additions and 20 deletions
				
			
		| 
						 | 
				
			
			@ -1906,6 +1906,17 @@ int snd_pcm_area_silence(const snd_pcm_channel_area_t *dst_area, snd_pcm_uframes
 | 
			
		|||
		}
 | 
			
		||||
		break;
 | 
			
		||||
	}
 | 
			
		||||
	case 24:
 | 
			
		||||
#ifdef SNDRV_LITTLE_ENDIAN
 | 
			
		||||
		*(dst + 0) = silence >> 0;
 | 
			
		||||
		*(dst + 1) = silence >> 8;
 | 
			
		||||
		*(dst + 2) = silence >> 16;
 | 
			
		||||
#else
 | 
			
		||||
		*(dst + 2) = silence >> 0;
 | 
			
		||||
		*(dst + 1) = silence >> 8;
 | 
			
		||||
		*(dst + 0) = silence >> 16;
 | 
			
		||||
#endif
 | 
			
		||||
		break;
 | 
			
		||||
	case 32: {
 | 
			
		||||
		u_int32_t sil = silence;
 | 
			
		||||
		while (samples-- > 0) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue