summaryrefslogtreecommitdiffstats
path: root/libkmid/tests
diff options
context:
space:
mode:
Diffstat (limited to 'libkmid/tests')
-rw-r--r--libkmid/tests/Kathzy.midbin9083 -> 0 bytes
-rw-r--r--libkmid/tests/Makefile.am14
-rw-r--r--libkmid/tests/apitest.cc25
-rw-r--r--libkmid/tests/ctest.c54
-rw-r--r--libkmid/tests/notesoff.cc24
5 files changed, 0 insertions, 117 deletions
diff --git a/libkmid/tests/Kathzy.mid b/libkmid/tests/Kathzy.mid
deleted file mode 100644
index f3a857fba..000000000
--- a/libkmid/tests/Kathzy.mid
+++ /dev/null
Binary files differ
diff --git a/libkmid/tests/Makefile.am b/libkmid/tests/Makefile.am
deleted file mode 100644
index 58bf5d58b..000000000
--- a/libkmid/tests/Makefile.am
+++ /dev/null
@@ -1,14 +0,0 @@
-
-INCLUDES = -I$(srcdir)/.. $(all_includes)
-
-noinst_PROGRAMS = ctest apitest notesoff
-
-ctest_SOURCES = ctest.c
-ctest_LDADD = ../libkmid.la
-
-apitest_SOURCES = apitest.cc
-apitest_LDADD = ../libkmid.la
-
-notesoff_SOURCES = notesoff.cc
-notesoff_LDADD = ../libkmid.la
-
diff --git a/libkmid/tests/apitest.cc b/libkmid/tests/apitest.cc
deleted file mode 100644
index 308fe2957..000000000
--- a/libkmid/tests/apitest.cc
+++ /dev/null
@@ -1,25 +0,0 @@
-#include <libkmid/libkmid.h>
-#include <unistd.h>
-#include <stdio.h>
-
-int main (int , char **)
-{
- printf("Libkmid test2 . (C) 2000 Antonio Larrosa Jimenez . Malaga (Spain)\n");
- printf("Using libkmid from a simple C++ application\n");
-
- KMidSimpleAPI::kMidInit();
- KMidSimpleAPI::kMidLoad("Kathzy.mid");
- KMidSimpleAPI::kMidPlay();
-
- for (int i=0;i<30;i++)
- {
- printf("%d/30 seconds\n",i+1);
- sleep(1);
- };
-
- KMidSimpleAPI::kMidStop();
- KMidSimpleAPI::kMidDestruct();
-
- return 0;
-};
-
diff --git a/libkmid/tests/ctest.c b/libkmid/tests/ctest.c
deleted file mode 100644
index 6e427a2c7..000000000
--- a/libkmid/tests/ctest.c
+++ /dev/null
@@ -1,54 +0,0 @@
-#include <libkmid/libkmid.h>
-#include <unistd.h>
-#include <stdio.h>
-
-int main (int argc, char **argv)
-{
- int i;
- char c;
-
- printf("Test1 %s. Using libkmid from a simple C application\n",kMidVersion());
- printf("%s\n",kMidCopyright());
-
- if (kMidInit()!=0)
- {
- printf("Error initializing libkmid\n");
- return 0;
- }
-
- if (kMidDevices()!=0)
- {
- printf("Available devices :\n");
- for (i=0;i<kMidDevices();i++)
- {
- printf(" %d) %s - %s\n",i,kMidName(i),kMidType(i));
- }
- printf("\nSelect one:");
- c=getc(stdin);
- }
- else
- {
- printf("There's no available devices. Let's pretend we didn't noticed it\n");
- printf("and start playing.\n");
- c='0';
- }
-
- kMidSetDevice((int)(c-'0'));
-
- kMidLoad("Kathzy.mid");
- kMidPlay();
-
- for (i=0;i<45;i++)
- {
- printf("%d/45 seconds\n",i+1);
- sleep(1);
- }
-
- kMidStop();
- kMidDestruct();
-
-
- return 0;
-
-};
-
diff --git a/libkmid/tests/notesoff.cc b/libkmid/tests/notesoff.cc
deleted file mode 100644
index 15cbb7f73..000000000
--- a/libkmid/tests/notesoff.cc
+++ /dev/null
@@ -1,24 +0,0 @@
-#include <libkmid/libkmid.h>
-#include <libkmid/deviceman.h>
-#include <unistd.h>
-#include <stdio.h>
-
-int main (int , char **)
-{
- printf("Libkmid Notes Off . (C) 2000 Antonio Larrosa Jimenez . Malaga (Spain)\n");
- printf("Using libkmid from a simple C++ application\n");
-
- KMidSimpleAPI::kMidInit();
-
- kMid.midi->checkInit();
- kMid.midi->openDev();
- kMid.midi->initDev();
-
- kMid.midi->allNotesOff();
- kMid.midi->closeDev();
-
- KMidSimpleAPI::kMidDestruct();
-
- return 0;
-};
-