19 #include <glibmm/miscutils.h>
42 _playlist = PlaylistFactory::create (DataType::AUDIO, *_session,
"test");
44 _source = SourceFactory::createWritable (DataType::AUDIO, *_session, test_wav_path,
false,
get_test_sample_rate ());
51 int const signal_length = 4096;
53 Sample staircase[signal_length];
54 for (
int i = 0; i < signal_length; ++i) {
58 s->
write (staircase, signal_length);
63 for (
int i = 0; i < 16; ++i) {
64 _r[i] = RegionFactory::create (_source, plist);
74 _audio_playlist.reset ();
76 for (
int i = 0; i < 16; ++i) {
shared_ptr< T > dynamic_pointer_cast(shared_ptr< U > const &r)
bool set_name(const std::string &str)
LIBARDOUR_API PBD::PropertyDescriptor< framepos_t > start
int get_test_sample_rate()
virtual framecnt_t write(Sample *src, framecnt_t cnt)
std::string new_test_output_dir(std::string prefix)
bool add(PropertyBase *prop)
std::string string_compose(const std::string &fmt, const T1 &o1)
LIBARDOUR_API PBD::PropertyDescriptor< framecnt_t > length