summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2013-03-30 17:20:42 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2013-03-30 17:20:42 +0100
commit5d9a75096d3277b2d719c48aca9ec909b3be754c (patch)
tree52426ead49ab39864cef5a98a8c250e183515fcf
parentb0e905e00d2f99822998a6ef4860d6ce48948c3b (diff)
Make debug-sleep code work on win32 as well as linux.
-rw-r--r--src/drumkitloader.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/drumkitloader.cc b/src/drumkitloader.cc
index 53af7db..c8d1cac 100644
--- a/src/drumkitloader.cc
+++ b/src/drumkitloader.cc
@@ -96,7 +96,13 @@ void DrumKitLoader::thread_main()
std::vector<AudioFile*>::iterator a = instr->audiofiles.begin();
while(a != instr->audiofiles.end()) {
- //usleep(5000);
+#if 0
+#ifdef WIN32
+ SleepEx(5000, FALSE);
+#else
+ usleep(5000);
+#endif/*WIN32*/
+#endif
AudioFile *af = *a;
af->load();
loaded++;