diff options
author | malc <av1474@comtv.ru> | 2010-09-28 08:54:24 +0400 |
---|---|---|
committer | malc <av1474@comtv.ru> | 2010-09-28 08:56:59 +0400 |
commit | 575c153f4f5cc23442e194619874de8ad4e6dd9c (patch) | |
tree | eb10b40ed296d7b10f30c7d3f2b03f5520daffee /audio/audio_template.h | |
parent | 9fe6de944930985885510f8e95d14104437d7c32 (diff) | |
download | qemu-575c153f4f5cc23442e194619874de8ad4e6dd9c.zip qemu-575c153f4f5cc23442e194619874de8ad4e6dd9c.tar.gz qemu-575c153f4f5cc23442e194619874de8ad4e6dd9c.tar.bz2 |
audio: Fix memory size for resampling buffer in DAC case
Signed-off-by: malc <av1474@comtv.ru>
Diffstat (limited to 'audio/audio_template.h')
-rw-r--r-- | audio/audio_template.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/audio/audio_template.h b/audio/audio_template.h index 2f5224b..fd4469e 100644 --- a/audio/audio_template.h +++ b/audio/audio_template.h @@ -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) { |