diff options
author | pbd <pbd@0c269be4-1314-0410-8aa9-9f06e86f4224> | 2006-05-16 16:04:31 +0000 |
---|---|---|
committer | pbd <pbd@0c269be4-1314-0410-8aa9-9f06e86f4224> | 2006-05-16 16:04:31 +0000 |
commit | b58cca6ae92482e9b54ee40fadb2e5217655451c (patch) | |
tree | c36df5e1f6aeb89198bd31fb1378db7740d6b354 /config/os | |
parent | 3a711a1cbe152e757b660df460b7b4b03c35663a (diff) | |
download | jack1-b58cca6ae92482e9b54ee40fadb2e5217655451c.tar.gz |
add new file
git-svn-id: svn+ssh://jackaudio.org/trunk/jack@955 0c269be4-1314-0410-8aa9-9f06e86f4224
Diffstat (limited to 'config/os')
-rw-r--r-- | config/os/macosx/time.c | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/config/os/macosx/time.c b/config/os/macosx/time.c new file mode 100644 index 0000000..eaaecb5 --- /dev/null +++ b/config/os/macosx/time.c @@ -0,0 +1,42 @@ +/* + Copyright (C) 2001-2003 Paul Davis + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation; either version 2.1 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + $Id$ +*/ + +#ifndef __jack_time_c__ +#define __jack_time_c__ + +#include <jack/types.h> +#include <mach/mach_time.h> + +double __jack_time_ratio; + +void +jack_init_time () +{ + mach_timebase_info_data_t info; + mach_timebase_info(&info); + __jack_time_ratio = ((float)info.numer/info.denom) / 1000; +} + +void jack_set_clock_source (jack_timer_type_t clocksrc) +{ + /* only one clock source for os x */ +} + +#endif /* __jack_time_c__ */ |