~diresu/blender/blender-command-port-002

« back to all changes in this revision

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

  • Committer: Dietrich Bollmann
  • Date: 2010-08-29 03:41:24 UTC
  • mfrom: (15474.1.5602)
  • Revision ID: dietrich@formgames.org-20100829034124-zyra4c9ig551rzlj
Update to state of blender repository from 2010-08-28 revision 31636.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
 
30
30
AUD_PitchFactory::AUD_PitchFactory(AUD_IFactory* factory, float pitch) :
31
31
                AUD_EffectFactory(factory),
32
 
                m_pitch(pitch) {}
33
 
 
34
 
AUD_PitchFactory::AUD_PitchFactory(float pitch) :
35
 
                AUD_EffectFactory(0),
36
 
                m_pitch(pitch) {}
37
 
 
38
 
AUD_IReader* AUD_PitchFactory::createReader()
39
 
{
40
 
        AUD_IReader* reader = getReader();
41
 
 
42
 
        if(reader != 0)
43
 
        {
44
 
                reader = new AUD_PitchReader(reader, m_pitch); AUD_NEW("reader")
45
 
        }
46
 
 
47
 
        return reader;
 
32
                m_pitch(pitch)
 
33
{
 
34
}
 
35
 
 
36
AUD_IReader* AUD_PitchFactory::createReader() const
 
37
{
 
38
        return new AUD_PitchReader(getReader(), m_pitch);
48
39
}