diff options
author | Thomas Grill <xovo@users.sourceforge.net> | 2003-09-23 00:21:28 +0000 |
---|---|---|
committer | Thomas Grill <xovo@users.sourceforge.net> | 2003-09-23 00:21:28 +0000 |
commit | 64fdb009695828b788fce074135b20a5e52c5fc4 (patch) | |
tree | a05144197dd339721b6d4a3a0927f7596e8872b6 /pd/src/s_inter.c | |
parent | a30193fcd726552364de74984b200be2c30723e7 (diff) |
imported version 0.37-0
svn path=/trunk/; revision=1016
Diffstat (limited to 'pd/src/s_inter.c')
-rw-r--r-- | pd/src/s_inter.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/pd/src/s_inter.c b/pd/src/s_inter.c index 004820f6..d5beb866 100644 --- a/pd/src/s_inter.c +++ b/pd/src/s_inter.c @@ -109,7 +109,9 @@ double nt_tixtotime(LARGE_INTEGER *dumbass) #endif #endif /* MSW */ -double sys_getrealtime(void) /* get "real time" in seconds */ + /* get "real time" in seconds; take the + first time we get called as a reference time of zero. */ +double sys_getrealtime(void) { #ifdef UNIX static struct timeval then; @@ -843,6 +845,7 @@ int sys_startgui(const char *guidir) if (!sys_nogui) { + char buf[256]; if (sys_verbose) fprintf(stderr, "Waiting for connection request... \n"); if (listen(xsock, 5) < 0) sys_sockerror("listen"); @@ -861,8 +864,8 @@ int sys_startgui(const char *guidir) /* here is where we start the pinging. */ if (sys_hipriority) sys_gui("pdtk_watchdog\n"); - - sys_vgui("pdtk_pd_startup {%s}\n", pd_version); + sys_get_audio_apis(buf); + sys_vgui("pdtk_pd_startup {%s} %s\n", pd_version, buf); } return (0); @@ -894,8 +897,9 @@ void sys_bail(int n) sys_close_midi(); fprintf(stderr, "... done.\n"); #endif + exit(1); } - _exit(n); + else _exit(n); } void glob_quit(void *dummy) |