aboutsummaryrefslogtreecommitdiff
path: root/pd/src/m_glob.c
diff options
context:
space:
mode:
authorGuenter Geiger <ggeiger@users.sourceforge.net>2003-05-09 16:04:00 +0000
committerGuenter Geiger <ggeiger@users.sourceforge.net>2003-05-09 16:04:00 +0000
commit9c0e19a3be2288db79e2502e5fa450c3e20a668d (patch)
treeca97ce615e037a533304fc4660dcf372ca3b9cd6 /pd/src/m_glob.c
parentef50dd62804d54af7da18d8bd8413c0dccd729b8 (diff)
This commit was generated by cvs2svn to compensate for changes in r610,
which included commits to RCS files with non-trunk default branches. svn path=/trunk/; revision=611
Diffstat (limited to 'pd/src/m_glob.c')
-rw-r--r--pd/src/m_glob.c43
1 files changed, 3 insertions, 40 deletions
diff --git a/pd/src/m_glob.c b/pd/src/m_glob.c
index 3be209d6..eb240068 100644
--- a/pd/src/m_glob.c
+++ b/pd/src/m_glob.c
@@ -2,6 +2,7 @@
* For information on usage and redistribution, and for a DISCLAIMER OF ALL
* WARRANTIES, see the file, "LICENSE.txt," in this distribution. */
+#include "m_pd.h"
#include "m_imp.h"
static t_class *pdclass;
@@ -19,47 +20,17 @@ void glob_audiostatus(void *dummy);
void glob_finderror(t_pd *dummy);
void glob_ping(t_pd *dummy);
-#if 0 /* this doesn't work for OSS or for ALSA... discouraged... */
-
-#ifdef UNIX
-#include <unistd.h>
-#endif
-
-void glob_restart_audio(t_pd *dummy)
-{
- int inchans = sys_get_inchannels();
- int outchans = sys_get_outchannels();
- post("1");
- sys_close_audio();
- post("2");
-#ifdef UNIX
- sleep(2);
-#endif
- post("3");
- sys_open_audio(1, 0, 1, 0, /* IOhannes */
- 1, &inchans, 1, &outchans, sys_dacsr);
- post("4");
-}
-#endif
-
void alsa_resync( void);
-#ifdef ALSA01
-void glob_restart_alsa(t_pd *dummy)
-{
- alsa_resync();
-}
-#endif
-
-#ifdef NT
+#ifdef MSW
void glob_audio(void *dummy, t_floatarg adc, t_floatarg dac);
#endif
/* a method you add for debugging printout */
void glob_foo(void *dummy, t_symbol *s, int argc, t_atom *argv);
-#if 0
+#if 1
void glob_foo(void *dummy, t_symbol *s, int argc, t_atom *argv)
{
*(int *)1 = 3;
@@ -108,14 +79,6 @@ void glob_init(void)
#ifdef UNIX
class_addmethod(pdclass, (t_method)glob_ping, gensym("ping"), 0);
#endif
-#ifdef NT
- class_addmethod(pdclass, (t_method)glob_audio, gensym("audio"),
- A_DEFFLOAT, A_DEFFLOAT, 0);
-#endif
-#ifdef ALSA01
- class_addmethod(pdclass, (t_method)glob_restart_alsa,
- gensym("restart-audio"), 0);
-#endif
class_addanything(pdclass, max_default);
pd_bind(&pdclass, gensym("pd"));
}