Fix JackCoreMidiDriver::ReadProcAux when ring buffer is full (thanks Devin Anderson).
[jack2.git] / common / JackTime.h
blob10ef1e8c62319a04e19967ea6ec68f286371bc0c
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 #ifndef __JackTime__
22 #define __JackTime__
24 #include "types.h"
25 #include "JackCompilerDeps.h"
26 #include "JackTypes.h"
28 #ifdef __cplusplus
29 extern "C"
31 #endif
33 SERVER_EXPORT void InitTime();
34 SERVER_EXPORT jack_time_t GetMicroSeconds(void);
35 SERVER_EXPORT void JackSleep(long usec);
36 SERVER_EXPORT void SetClockSource(jack_timer_type_t source);
37 SERVER_EXPORT const char* ClockSourceName(jack_timer_type_t source);
39 #ifdef __cplusplus
41 #endif
43 #endif