/* Copyright (C) 2012 Paul Davis This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include #include "test_needing_session.h" namespace ARDOUR { class Playlist; class AudioPlaylist; class Source; class Region; class AudioRegion; } /** A parent class for tests which offers some audio regions, * each with a staircase waveform within them. */ class AudioRegionTest : public TestNeedingSession { public: virtual void setUp (); virtual void tearDown (); protected: boost::shared_ptr _playlist; /** AudioPlaylist downcast of _playlist */ boost::shared_ptr _audio_playlist; boost::shared_ptr _source; /** 16 regions, of length 100, each referencing a source which is 4096 * samples of a staircase waveform. */ boost::shared_ptr _r[16]; /** AudioRegion downcasts of _r[] */ boost::shared_ptr _ar[16]; };