summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2018-10-08 20:50:52 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2018-10-08 20:50:52 +0200
commita21ab2d9260bd4cb1af1de0b8cd4cad9e9687861 (patch)
tree4b449b45a05e2a5bd33859eaa2c7b1e7cf1bcca6 /test
parent30c2b53047b11b1517fa44b49adc52bc5119649c (diff)
Move event.h and audiotypes.h into src and get rid of the obsolete include folder.
Diffstat (limited to 'test')
-rw-r--r--test/Makefile.am20
-rw-r--r--test/dgreftest/Makefile.am2
-rw-r--r--test/dgreftest/midiinputengine.cc4
3 files changed, 13 insertions, 13 deletions
diff --git a/test/Makefile.am b/test/Makefile.am
index 7dcfd52..80ff73a 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -35,7 +35,7 @@ resource_SOURCES = \
resource_test.cc
audiocache_CXXFLAGS = -DOUTPUT=\"audiocache\" \
- -I$(top_srcdir)/src -I$(top_srcdir)/include \
+ -I$(top_srcdir)/src \
-I$(top_srcdir)/hugin -DDISABLE_HUGIN $(PTHREAD_CFLAGS) $(SNDFILE_CFLAGS)
audiocache_LDFLAGS = $(PTHREAD_LIBS) $(SNDFILE_LIBS)
audiocache_SOURCES = \
@@ -52,7 +52,7 @@ audiocache_SOURCES = \
audiocachetest.cc
audiocachefile_CXXFLAGS = -DOUTPUT=\"audiocachefile\" \
- -I$(top_srcdir)/src -I$(top_srcdir)/include \
+ -I$(top_srcdir)/src \
-I$(top_srcdir)/hugin -DDISABLE_HUGIN $(PTHREAD_CFLAGS) $(SNDFILE_CFLAGS)
audiocachefile_LDFLAGS = $(PTHREAD_LIBS) $(SNDFILE_LIBS)
audiocachefile_SOURCES = \
@@ -67,7 +67,7 @@ audiocachefile_SOURCES = \
audiocacheidmanager_CXXFLAGS = -DOUTPUT=\"audiocacheidmanager\" \
\
- -I$(top_srcdir)/src -I$(top_srcdir)/include \
+ -I$(top_srcdir)/src \
-I$(top_srcdir)/hugin -DDISABLE_HUGIN $(SNDFILE_CFLAGS)
audiocacheidmanager_LDFLAGS = $(SNDFILE_LIBS)
audiocacheidmanager_SOURCES = \
@@ -77,7 +77,7 @@ audiocacheidmanager_SOURCES = \
audiocacheeventhandler_CXXFLAGS = -DOUTPUT=\"audiocacheeventhandler\" \
\
- -I$(top_srcdir)/src -I$(top_srcdir)/include \
+ -I$(top_srcdir)/src \
-I$(top_srcdir)/hugin -DDISABLE_HUGIN $(PTHREAD_CFLAGS) $(SNDFILE_CFLAGS)
audiocacheeventhandler_LDFLAGS = $(PTHREAD_LIBS) $(SNDFILE_LIBS)
audiocacheeventhandler_SOURCES = \
@@ -90,7 +90,7 @@ audiocacheeventhandler_SOURCES = \
audiocacheeventhandlertest.cc
enginetest_CXXFLAGS = -DOUTPUT=\"enginetest\" \
- -I$(top_srcdir)/src -I$(top_srcdir)/include \
+ -I$(top_srcdir)/src \
-I$(top_srcdir)/hugin $(PTHREAD_CFLAGS) $(SNDFILE_CFLAGS)
enginetest_LDFLAGS = $(PTHREAD_LIBS) $(SNDFILE_LIBS) \
$(top_srcdir)/src/libdg.la
@@ -101,7 +101,7 @@ enginetest_SOURCES = \
enginetest.cc
paintertest_CXXFLAGS = -DOUTPUT=\"paintertest\" \
- -I$(top_srcdir)/src -I$(top_srcdir)/include -I$(top_srcdir)/plugingui \
+ -I$(top_srcdir)/src -I$(top_srcdir)/plugingui \
-I$(top_srcdir)/hugin $(PTHREAD_CFLAGS)
paintertest_LDFLAGS = $(top_srcdir)/plugingui/libdggui.la
paintertest_SOURCES = \
@@ -196,7 +196,7 @@ notifiertest_SOURCES = \
dgtest.cc
dgxmlparsertest_CXXFLAGS = -DOUTPUT=\"dgxmlparsertest\" \
- -I$(top_srcdir)/src -I$(top_srcdir)/include -I$(top_srcdir)/hugin \
+ -I$(top_srcdir)/src -I$(top_srcdir)/hugin \
-I$(top_srcdir)/pugixml/src
dgxmlparsertest_LDFLAGS =
dgxmlparsertest_SOURCES = \
@@ -208,7 +208,7 @@ dgxmlparsertest_SOURCES = \
dgtest.cc
domloadertest_CXXFLAGS = -DOUTPUT=\"domloadertest\" \
- -I$(top_srcdir)/src -I$(top_srcdir)/include
+ -I$(top_srcdir)/src
domloadertest_LDFLAGS = \
$(top_srcdir)/src/libdg.la
domloadertest_SOURCES = \
@@ -218,7 +218,7 @@ domloadertest_SOURCES = \
dgtest.cc
configparsertest_CXXFLAGS = -DOUTPUT=\"configparsertest\" \
- -I$(top_srcdir)/src -I$(top_srcdir)/include -I$(top_srcdir)/hugin \
+ -I$(top_srcdir)/src -I$(top_srcdir)/hugin \
-I$(top_srcdir)/pugixml/src
configparsertest_LDFLAGS =
configparsertest_SOURCES = \
@@ -229,7 +229,7 @@ configparsertest_SOURCES = \
dgtest.cc
midimapparsertest_CXXFLAGS = -DOUTPUT=\"midimapparsertest\" \
- -I$(top_srcdir)/src -I$(top_srcdir)/include -I$(top_srcdir)/hugin \
+ -I$(top_srcdir)/src -I$(top_srcdir)/hugin \
-I$(top_srcdir)/pugixml/src
midimapparsertest_LDFLAGS =
midimapparsertest_SOURCES = \
diff --git a/test/dgreftest/Makefile.am b/test/dgreftest/Makefile.am
index 3884250..51b7825 100644
--- a/test/dgreftest/Makefile.am
+++ b/test/dgreftest/Makefile.am
@@ -9,7 +9,7 @@ dgreftest_LDADD = $(PTHREAD_LIBS) $(JACK_LIBS) \
dgreftest_LDFLAGS =
dgreftest_CXXFLAGS = $(SNDFILE_CXXFLAGS) $(PTHREAD_CFLAGS) \
- -I$(top_srcdir)/include -I$(top_srcdir)/src \
+ -I$(top_srcdir)/src \
-I$(top_srcdir)/hugin -DWITH_HUG_MUTEX -DWITH_HUG_FILTER \
$(JACK_CFLAGS) $(SSEFLAGS) $(SMF_CFLAGS) $(FLOAT_STORE)
diff --git a/test/dgreftest/midiinputengine.cc b/test/dgreftest/midiinputengine.cc
index e984d58..ca223da 100644
--- a/test/dgreftest/midiinputengine.cc
+++ b/test/dgreftest/midiinputengine.cc
@@ -157,7 +157,7 @@ void MidifileInputEngine::run(size_t pos, size_t len, std::vector<event_t>& even
events.emplace_back();
auto& event = events.back();
- event.type = TYPE_ONSET;
+ event.type = EventType::OnSet;
size_t evpos = current_event->time_seconds * (samplerate / speed);
event.offset = evpos - pos;
@@ -183,7 +183,7 @@ void MidifileInputEngine::run(size_t pos, size_t len, std::vector<event_t>& even
else
{
assert(len >= 1);
- events.push_back({TYPE_STOP, 0, len-1, 0.f});
+ events.push_back({EventType::Stop, 0, len-1, 0.f});
}
}
}