audio: Fix memory size for resampling buffer in DAC case

Signed-off-by: malc <av1474@comtv.ru>
This commit is contained in:
malc 2010-09-28 08:54:24 +04:00
parent 9fe6de9449
commit 575c153f4f

View file

@ -108,11 +108,7 @@ static int glue (audio_pcm_sw_alloc_resources_, TYPE) (SW *sw)
{
int samples;
#ifdef DAC
samples = sw->hw->samples;
#else
samples = ((int64_t) sw->hw->samples << 32) / sw->ratio;
#endif
sw->buf = audio_calloc (AUDIO_FUNC, samples, sizeof (struct st_sample));
if (!sw->buf) {