mirror of
				https://github.com/alsa-project/alsa-lib.git
				synced 2025-11-03 09:01:52 -05:00 
			
		
		
		
	Added lfloat plugin code (not finished)
This commit is contained in:
		
							parent
							
								
									72a221be2c
								
							
						
					
					
						commit
						bb749766d4
					
				
					 6 changed files with 33 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -81,6 +81,24 @@ int snd_pcm_format_linear(snd_pcm_format_t format)
 | 
			
		|||
	return snd_pcm_format_signed(format) >= 0;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * \brief Return float info for a PCM sample format
 | 
			
		||||
 * \param format Format
 | 
			
		||||
 * \return 0 non float, 1 float
 | 
			
		||||
 */
 | 
			
		||||
int snd_pcm_format_float(snd_pcm_format_t format)
 | 
			
		||||
{
 | 
			
		||||
	switch (format) {
 | 
			
		||||
	case SNDRV_PCM_FORMAT_FLOAT_LE:
 | 
			
		||||
	case SNDRV_PCM_FORMAT_FLOAT_BE:
 | 
			
		||||
	case SNDRV_PCM_FORMAT_FLOAT64_LE:
 | 
			
		||||
	case SNDRV_PCM_FORMAT_FLOAT64_BE:
 | 
			
		||||
		return 1;
 | 
			
		||||
	default:
 | 
			
		||||
		return 0;
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * \brief Return endian info for a PCM sample format
 | 
			
		||||
 * \param format Format
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue