]> git.alsa-project.org Git - alsa-oss.git/commitdiff
Fixed typo
authorAbramo Bagnara <abramo@alsa-project.org>
Sat, 23 Dec 2000 10:14:54 +0000 (10:14 +0000)
committerAbramo Bagnara <abramo@alsa-project.org>
Sat, 23 Dec 2000 10:14:54 +0000 (10:14 +0000)
alsa-oss.c

index 7b482a8f809f49f2246d2f6b394d4f1e33634326..30154bf13195b34ab312957c91215b8dc8489ce6 100644 (file)
@@ -240,7 +240,7 @@ static int oss_dsp_params(oss_dsp_t *dsp)
 #endif
                dsp->rate = snd_pcm_hw_params_value(&hw, SND_PCM_HW_PARAM_RATE);
                dsp->format = alsa_format_to_oss(format);
-               str->frame_bytes = snd_pcm_format_physical_width(format) * dsp->channels;
+               str->frame_bytes = snd_pcm_format_physical_width(format) * dsp->channels / 8;
                str->fragment_size = snd_pcm_hw_params_value(&hw, SND_PCM_HW_PARAM_FRAGMENT_SIZE);
                str->fragments = snd_pcm_hw_params_value(&hw, SND_PCM_HW_PARAM_FRAGMENTS);
                str->buffer_size = str->fragments * str->fragment_size;