From 5d9a75096d3277b2d719c48aca9ec909b3be754c Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sat, 30 Mar 2013 17:20:42 +0100 Subject: Make debug-sleep code work on win32 as well as linux. --- src/drumkitloader.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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::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++; -- cgit v1.2.3