diff options
author | Joerg Mueller <nexyon@gmail.com> | 2011-06-22 00:13:27 +0400 |
---|---|---|
committer | Joerg Mueller <nexyon@gmail.com> | 2011-06-22 00:13:27 +0400 |
commit | 3d932ba4968d8caa3c936d9186439781e7cedca0 (patch) | |
tree | b6968fff93462e6e05caba6d89c58d80982325b8 /intern/audaspace/fftw/AUD_BandPassReader.cpp | |
parent | f2ceca4eb05675f4058fc6666805de58cb10916f (diff) |
3D Audio GSoC:
Buffer.assureSize - a function that should long have been there.
Diffstat (limited to 'intern/audaspace/fftw/AUD_BandPassReader.cpp')
-rw-r--r-- | intern/audaspace/fftw/AUD_BandPassReader.cpp | 3 |
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) { |