mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	pw-cat: fix raw read
raw read needs bytes, so use the stride to calculate it from frames. Move ulaw/alaw to packed formats.
This commit is contained in:
		
							parent
							
								
									f7c91491cb
								
							
						
					
					
						commit
						49c1c0386f
					
				
					 4 changed files with 10 additions and 10 deletions
				
			
		| 
						 | 
				
			
			@ -215,7 +215,7 @@ void
 | 
			
		|||
conv_alaw_to_f32d_c(struct convert *conv, void * SPA_RESTRICT dst[], const void * SPA_RESTRICT src[],
 | 
			
		||||
		uint32_t n_samples)
 | 
			
		||||
{
 | 
			
		||||
	const int8_t *s = src[0];
 | 
			
		||||
	const uint8_t *s = src[0];
 | 
			
		||||
	float **d = (float **) dst;
 | 
			
		||||
	uint32_t i, j, n_channels = conv->n_channels;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -229,7 +229,7 @@ void
 | 
			
		|||
conv_ulaw_to_f32d_c(struct convert *conv, void * SPA_RESTRICT dst[], const void * SPA_RESTRICT src[],
 | 
			
		||||
		uint32_t n_samples)
 | 
			
		||||
{
 | 
			
		||||
	const int8_t *s = src[0];
 | 
			
		||||
	const uint8_t *s = src[0];
 | 
			
		||||
	float **d = (float **) dst;
 | 
			
		||||
	uint32_t i, j, n_channels = conv->n_channels;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue