2
* ***** BEGIN GPL LICENSE BLOCK *****
4
* Copyright 2009-2011 Jörg Hermann Müller
6
* This file is part of AudaSpace.
8
* Audaspace is free software; you can redistribute it and/or modify
9
* it under the terms of the GNU General Public License as published by
10
* the Free Software Foundation; either version 2 of the License, or
11
* (at your option) any later version.
13
* AudaSpace is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
* GNU General Public License for more details.
18
* You should have received a copy of the GNU General Public License
19
* along with Audaspace; if not, write to the Free Software Foundation,
20
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22
* ***** END GPL LICENSE BLOCK *****
25
/** \file audaspace/FX/AUD_SuperposeFactory.cpp
30
#include "AUD_SuperposeFactory.h"
31
#include "AUD_SuperposeReader.h"
33
AUD_SuperposeFactory::AUD_SuperposeFactory(AUD_Reference<AUD_IFactory> factory1, AUD_Reference<AUD_IFactory> factory2) :
34
m_factory1(factory1), m_factory2(factory2)
38
AUD_Reference<AUD_IReader> AUD_SuperposeFactory::createReader()
40
AUD_Reference<AUD_IReader> reader1 = m_factory1->createReader();
41
AUD_Reference<AUD_IReader> reader2 = m_factory2->createReader();
43
return new AUD_SuperposeReader(reader1, reader2);