audio: Fix memory size for resampling buffer in DAC case
Signed-off-by: malc <av1474@comtv.ru>
This commit is contained in:
parent
9fe6de9449
commit
575c153f4f
|
@ -108,11 +108,7 @@ static int glue (audio_pcm_sw_alloc_resources_, TYPE) (SW *sw)
|
||||||
{
|
{
|
||||||
int samples;
|
int samples;
|
||||||
|
|
||||||
#ifdef DAC
|
|
||||||
samples = sw->hw->samples;
|
|
||||||
#else
|
|
||||||
samples = ((int64_t) sw->hw->samples << 32) / sw->ratio;
|
samples = ((int64_t) sw->hw->samples << 32) / sw->ratio;
|
||||||
#endif
|
|
||||||
|
|
||||||
sw->buf = audio_calloc (AUDIO_FUNC, samples, sizeof (struct st_sample));
|
sw->buf = audio_calloc (AUDIO_FUNC, samples, sizeof (struct st_sample));
|
||||||
if (!sw->buf) {
|
if (!sw->buf) {
|
||||||
|
|
Loading…
Reference in a new issue