Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoerg Mueller <nexyon@gmail.com>2011-06-22 00:13:27 +0400
committerJoerg Mueller <nexyon@gmail.com>2011-06-22 00:13:27 +0400
commit3d932ba4968d8caa3c936d9186439781e7cedca0 (patch)
treeb6968fff93462e6e05caba6d89c58d80982325b8 /intern/audaspace/fftw
parentf2ceca4eb05675f4058fc6666805de58cb10916f (diff)
3D Audio GSoC:
Buffer.assureSize - a function that should long have been there.
Diffstat (limited to 'intern/audaspace/fftw')
-rw-r--r--intern/audaspace/fftw/AUD_BandPassReader.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/intern/audaspace/fftw/AUD_BandPassReader.cpp b/intern/audaspace/fftw/AUD_BandPassReader.cpp
index 06f0a2af0ad..22c65b18d76 100644
--- a/intern/audaspace/fftw/AUD_BandPassReader.cpp
+++ b/intern/audaspace/fftw/AUD_BandPassReader.cpp
@@ -71,8 +71,7 @@ void AUD_BandPassReader::read(int & length, sample_t* & buffer)
if(length > 0)
{
- if(length * AUD_SAMPLE_SIZE(specs) > m_buffer->getSize())
- m_buffer->resize(length * AUD_SAMPLE_SIZE(specs));
+ m_buffer->assureSize(length * AUD_SAMPLE_SIZE(specs));
if(length != m_length)
{