3 #include <glibmm/fileutils.h>
4 #include <glibmm/miscutils.h>
18 string new_file_path = Glib::build_filename (output_dir_path,
"NewFile.mid");
21 CPPUNIT_ASSERT(Glib::file_test (new_file_path, Glib::FILE_TEST_IS_REGULAR));
27 #ifdef PLATFORM_WINDOWS
28 string wsp(g_win32_get_package_installation_directory_of_module(NULL));
29 return Glib::build_filename (wsp,
"evoral_testdata");
31 return Glib::getenv(
"EVORAL_TEST_PATH");
41 smf.
open(testdata_path);
54 while ((ret = smf.
read_event(&delta_t, &size, &buf)) >= 0) {
68 CPPUNIT_ASSERT(!seq->empty());
PBD::Searchpath test_search_path()
void close() THROW_FILE_ERROR
bool find_file(const Searchpath &search_path, const string &filename, std::string &result)
static Beats ticks_at_rate(uint64_t ticks, uint32_t ppqn)
void set_event_type(EventType t)
string tmp_writable_directory(const char *domain, const string &prefix)
LIBEVORAL_API event_id_t next_event_id()
int create(const std::string &path, int track=1, uint16_t ppqn=19200) THROW_FILE_ERROR
int open(const std::string &path) THROW_FILE_ERROR
void set(const uint8_t *buf, uint32_t size, Time t)
void seek_to_start() const
int read_event(uint32_t *delta_t, uint32_t *size, uint8_t **buf) const
CPPUNIT_TEST_SUITE_REGISTRATION(SMFTest)