summaryrefslogtreecommitdiff
path: root/libs/ardour/test/playlist_read_test.h
blob: 9328d926e0ddfe6db1fe75d6af75d592a4f7481e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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);
};