mirror of
				https://github.com/alsa-project/alsa-lib.git
				synced 2025-11-03 09:01:52 -05:00 
			
		
		
		
	First part of PCM documentation
This commit is contained in:
		
							parent
							
								
									82fcfe1ab5
								
							
						
					
					
						commit
						445e2b0c07
					
				
					 7 changed files with 870 additions and 377 deletions
				
			
		| 
						 | 
				
			
			@ -236,6 +236,7 @@ ssize_t snd_pcm_format_size(snd_pcm_format_t format, size_t samples)
 | 
			
		|||
			return -EINVAL;
 | 
			
		||||
		return samples / 2;
 | 
			
		||||
	default:
 | 
			
		||||
		assert(0);
 | 
			
		||||
		return -EINVAL;
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			@ -344,6 +345,9 @@ u_int64_t snd_pcm_format_silence_64(snd_pcm_format_t format)
 | 
			
		|||
	case SNDRV_PCM_FORMAT_GSM:
 | 
			
		||||
	case SNDRV_PCM_FORMAT_SPECIAL:
 | 
			
		||||
		return 0;
 | 
			
		||||
	default:
 | 
			
		||||
		assert(0);
 | 
			
		||||
		return -EINVAL;
 | 
			
		||||
	}
 | 
			
		||||
	return 0;
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue