mirror of
				https://github.com/alsa-project/alsa-lib.git
				synced 2025-11-03 09:01:52 -05:00 
			
		
		
		
	Fixed silence for 24-bit format
This commit is contained in:
		
							parent
							
								
									0908dac385
								
							
						
					
					
						commit
						b3a8b42c0e
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -435,7 +435,7 @@ int snd_pcm_format_set_silence(snd_pcm_format_t format, void *data, unsigned int
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	if (samples == 0)
 | 
						if (samples == 0)
 | 
				
			||||||
		return 0;
 | 
							return 0;
 | 
				
			||||||
	switch (snd_pcm_format_width(format)) {
 | 
						switch (snd_pcm_format_physical_width(format)) {
 | 
				
			||||||
	case 4: {
 | 
						case 4: {
 | 
				
			||||||
		u_int8_t silence = snd_pcm_format_silence_64(format);
 | 
							u_int8_t silence = snd_pcm_format_silence_64(format);
 | 
				
			||||||
		unsigned int samples1;
 | 
							unsigned int samples1;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue