Use jack_client_open instead of old jack_client_new.
[jack2.git] / windows / JackWinTime.c
blobbd950806c19bbbe09c850561bae59e1abdd8dec3
1 /*
2 Copyright (C) 2001-2003 Paul Davis
3 Copyright (C) 2004-2008 Grame
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU Lesser General Public License as published by
7 the Free Software Foundation; either version 2.1 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU Lesser General Public License for more details.
15 You should have received a copy of the GNU Lesser General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21 #include "JackTime.h"
23 static LARGE_INTEGER _jack_freq;
25 SERVER_EXPORT void JackSleep(long usec)
27 Sleep(usec / 1000);
30 SERVER_EXPORT void InitTime()
32 QueryPerformanceFrequency(&_jack_freq);
35 SERVER_EXPORT jack_time_t GetMicroSeconds(void)
37 LARGE_INTEGER t1;
38 QueryPerformanceCounter(&t1);
39 return (jack_time_t)(((double)t1.QuadPart) / ((double)_jack_freq.QuadPart) * 1000000.0);
42 SERVER_EXPORT void SetClockSource(jack_timer_type_t source)
45 SERVER_EXPORT const char* ClockSourceName(jack_timer_type_t source)
47 return "";