summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Hofman <pavel.hofman@insite.cz>2009-03-03 17:07:55 +0100
committerTakashi Iwai <tiwai@suse.de>2009-03-03 17:07:55 +0100
commit0fe807dedd20fe56887c8c27e64aea1b693a3d35 (patch)
treea92ef74cf64b94dc6e4cb71ae1dd32efe4ada44f
parent50e9cd9525ace016f0c416b848d51471760fa6d2 (diff)
downloadalsa-lib-0fe807dedd20fe56887c8c27e64aea1b693a3d35.tar.gz
Change "%b" to represent bits instead of bytes in PCM file plugin
Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r--src/pcm/pcm_file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pcm/pcm_file.c b/src/pcm/pcm_file.c
index 6ddf14fe..bfa1cc8b 100644
--- a/src/pcm/pcm_file.c
+++ b/src/pcm/pcm_file.c
@@ -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 %