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/FX
parentf2ceca4eb05675f4058fc6666805de58cb10916f (diff)
3D Audio GSoC:
Buffer.assureSize - a function that should long have been there.
Diffstat (limited to 'intern/audaspace/FX')
-rw-r--r--intern/audaspace/FX/AUD_SuperposeReader.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/intern/audaspace/FX/AUD_SuperposeReader.cpp b/intern/audaspace/FX/AUD_SuperposeReader.cpp
index 3ad2420fc91..49e29d2b0f9 100644
--- a/intern/audaspace/FX/AUD_SuperposeReader.cpp
+++ b/intern/audaspace/FX/AUD_SuperposeReader.cpp
@@ -87,8 +87,7 @@ void AUD_SuperposeReader::read(int & length, sample_t* buffer)
AUD_Specs specs = m_reader1->getSpecs();
int samplesize = AUD_SAMPLE_SIZE(specs);
- if(m_buffer.getSize() < length * samplesize)
- m_buffer.resize(length * samplesize);
+ m_buffer.assureSize(length * samplesize);
int len1 = length;
m_reader1->read(len1, buffer);