]> git.alsa-project.org Git - alsa-lib.git/commitdiff
Change "%b" to represent bits instead of bytes in PCM file plugin
authorPavel Hofman <pavel.hofman@insite.cz>
Tue, 3 Mar 2009 16:07:55 +0000 (17:07 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 3 Mar 2009 16:07:55 +0000 (17:07 +0100)
Signed-off-by: Takashi Iwai <tiwai@suse.de>
src/pcm/pcm_file.c

index 6ddf14fe5d7b63fe128a5e8637c75eac1d2f9b49..bfa1cc8b0e13aca2340f62702020f8c880cd33ca 100644 (file)
@@ -172,7 +172,7 @@ static int snd_pcm_file_replace_fname(snd_pcm_file_t *file, char **new_fname_p)
 
                        case BWIDTH_KEY:
                                snprintf(value, sizeof(value), "%d",
-                                       pcm->frame_bits/(8 * pcm->channels));
+                                       pcm->frame_bits/pcm->channels);
                                err = snd_pcm_file_append_value(&new_fname,
                                                &new_index_ch, &new_len, value);
                                if (err < 0)
@@ -816,7 +816,7 @@ pcm.name {
                                # real values corresponding to the stream:
                                # %r    rate (replaced with: 48000)
                                # %c    channels (replaced with: 2)
-                               # %b    bytes per sample (replaced with: 2)
+                               # %b    bits per sample (replaced with: 16)
                                # %f    sample format string
                                #                       (replaced with: S16_LE)
                                # %%    replaced with %