summaryrefslogtreecommitdiff
path: root/libs/ardour/test/playlist_read_test.h
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2012-04-16 16:32:22 +0000
committerCarl Hetherington <carl@carlh.net>2012-04-16 16:32:22 +0000
commita2897ecef6da6a458aa1de8c2d9973a1e809dca2 (patch)
tree189e34b829823fc73d11fba249f283e00336d44d /libs/ardour/test/playlist_read_test.h
parent02c498a8fa1c2e47988a256321bdcf5e9e869de1 (diff)
Fairly major change to the way in which crossfades are handled;
they are now done with region fades, rather than separate objects. After this commit, Ardour will try to convert your session files to the new crossfade format, but will make a backup in your session folder first. If you have works in progress using Ardour 3 it is ***STRONGLY RECOMMENDED*** that you back up session files before updating to this commit. git-svn-id: svn://localhost/ardour2/branches/3.0@11986 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/test/playlist_read_test.h')
-rw-r--r--libs/ardour/test/playlist_read_test.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/libs/ardour/test/playlist_read_test.h b/libs/ardour/test/playlist_read_test.h
new file mode 100644
index 0000000000..9328d926e0
--- /dev/null
+++ b/libs/ardour/test/playlist_read_test.h
@@ -0,0 +1,27 @@
+#include "ardour/types.h"
+#include "test_needing_playlist_and_regions.h"
+
+class PlaylistReadTest : public TestNeedingPlaylistAndRegions
+{
+ CPPUNIT_TEST_SUITE (PlaylistReadTest);
+ CPPUNIT_TEST (singleReadTest);
+ CPPUNIT_TEST (transparentReadTest);
+ CPPUNIT_TEST_SUITE_END ();
+
+public:
+ void setUp ();
+ void tearDown ();
+
+ void singleReadTest ();
+ void overlappingReadTest ();
+ void transparentReadTest ();
+
+private:
+ int _N;
+ ARDOUR::Sample* _buf;
+ ARDOUR::Sample* _mbuf;
+ float* _gbuf;
+ boost::shared_ptr<ARDOUR::AudioPlaylist> _apl;
+
+ void check_staircase (ARDOUR::Sample *, int, int);
+};