~ubuntu-branches/ubuntu/trusty/blender/trusty

« back to all changes in this revision

Viewing changes to intern/audaspace/FX/AUD_IIRFilterReader.cpp

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha
  • Date: 2013-03-06 12:08:47 UTC
  • mfrom: (1.5.1) (14.1.8 experimental)
  • Revision ID: package-import@ubuntu.com-20130306120847-frjfaryb2zrotwcg
Tags: 2.66a-1ubuntu1
* Resynchronize with Debian (LP: #1076930, #1089256, #1052743, #999024,
  #1122888, #1147084)
* debian/control:
  - Lower build-depends on libavcodec-dev since we're not
    doing the libav9 transition in Ubuntu yet

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
 
30
30
#include "AUD_IIRFilterReader.h"
31
31
 
32
 
AUD_IIRFilterReader::AUD_IIRFilterReader(AUD_Reference<AUD_IReader> reader,
 
32
AUD_IIRFilterReader::AUD_IIRFilterReader(boost::shared_ptr<AUD_IReader> reader,
33
33
                                                                                 const std::vector<float>& b,
34
34
                                                                                 const std::vector<float>& a) :
35
35
        AUD_BaseIIRFilterReader(reader, b.size(), a.size()), m_a(a), m_b(b)
36
36
{
37
 
        if(m_a.size())
 
37
        if(m_a.empty() == false)
38
38
        {
39
39
                for(int i = 1; i < m_a.size(); i++)
40
40
                        m_a[i] /= m_a[0];