mirror of
				https://github.com/alsa-project/alsa-lib.git
				synced 2025-11-03 09:01:52 -05:00 
			
		
		
		
	Change "%b" to represent bits instead of bytes in PCM file plugin
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
		
							parent
							
								
									50e9cd9525
								
							
						
					
					
						commit
						0fe807dedd
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -172,7 +172,7 @@ static int snd_pcm_file_replace_fname(snd_pcm_file_t *file, char **new_fname_p)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			case BWIDTH_KEY:
 | 
								case BWIDTH_KEY:
 | 
				
			||||||
				snprintf(value, sizeof(value), "%d",
 | 
									snprintf(value, sizeof(value), "%d",
 | 
				
			||||||
					pcm->frame_bits/(8 * pcm->channels));
 | 
										pcm->frame_bits/pcm->channels);
 | 
				
			||||||
				err = snd_pcm_file_append_value(&new_fname,
 | 
									err = snd_pcm_file_append_value(&new_fname,
 | 
				
			||||||
						&new_index_ch, &new_len, value);
 | 
											&new_index_ch, &new_len, value);
 | 
				
			||||||
				if (err < 0)
 | 
									if (err < 0)
 | 
				
			||||||
| 
						 | 
					@ -816,7 +816,7 @@ pcm.name {
 | 
				
			||||||
				# real values corresponding to the stream:
 | 
									# real values corresponding to the stream:
 | 
				
			||||||
				# %r	rate (replaced with: 48000)
 | 
									# %r	rate (replaced with: 48000)
 | 
				
			||||||
				# %c	channels (replaced with: 2)
 | 
									# %c	channels (replaced with: 2)
 | 
				
			||||||
				# %b	bytes per sample (replaced with: 2)
 | 
									# %b	bits per sample (replaced with: 16)
 | 
				
			||||||
				# %f	sample format string
 | 
									# %f	sample format string
 | 
				
			||||||
				#			(replaced with: S16_LE)
 | 
									#			(replaced with: S16_LE)
 | 
				
			||||||
				# %%	replaced with %
 | 
									# %%	replaced with %
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue