From: Abramo Bagnara Date: Sat, 23 Dec 2000 10:14:54 +0000 (+0000) Subject: Fixed typo X-Git-Tag: v1.0.3~104 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=d6cfa2582373f5cbe2a6233ca33374e2d5906f69;p=alsa-oss.git Fixed typo --- diff --git a/alsa-oss.c b/alsa-oss.c index 7b482a8..30154bf 100644 --- a/alsa-oss.c +++ b/alsa-oss.c @@ -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;