From d6cfa2582373f5cbe2a6233ca33374e2d5906f69 Mon Sep 17 00:00:00 2001 From: Abramo Bagnara Date: Sat, 23 Dec 2000 10:14:54 +0000 Subject: [PATCH] Fixed typo --- alsa-oss.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.1