summaryrefslogtreecommitdiff
path: root/apps/plugins/pdbox/PDa/src/m_glob.c
diff options
context:
space:
mode:
authorPeter D'Hoye <peter.dhoye@gmail.com>2009-05-24 21:28:16 +0000
committerPeter D'Hoye <peter.dhoye@gmail.com>2009-05-24 21:28:16 +0000
commit526b5580dabbfed7cfe5439dc3a90ec727f563c2 (patch)
tree22b1af92348785daad16714ee5e2b633017e0e48 /apps/plugins/pdbox/PDa/src/m_glob.c
parent4f2dfcc01b260d946044ef2b6af5fe36cb772c8d (diff)
downloadrockbox-526b5580dabbfed7cfe5439dc3a90ec727f563c2.tar.gz
rockbox-526b5580dabbfed7cfe5439dc3a90ec727f563c2.zip
Cut the files in half and it might work better (note to self: check your tree is really clean before patching)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21070 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/pdbox/PDa/src/m_glob.c')
-rw-r--r--apps/plugins/pdbox/PDa/src/m_glob.c104
1 files changed, 0 insertions, 104 deletions
diff --git a/apps/plugins/pdbox/PDa/src/m_glob.c b/apps/plugins/pdbox/PDa/src/m_glob.c
index 5d62087b3c..2ec584a33d 100644
--- a/apps/plugins/pdbox/PDa/src/m_glob.c
+++ b/apps/plugins/pdbox/PDa/src/m_glob.c
@@ -103,108 +103,4 @@ void glob_init(void)
103 class_addanything(glob_pdobject, max_default); 103 class_addanything(glob_pdobject, max_default);
104 pd_bind(&glob_pdobject, gensym("pd")); 104 pd_bind(&glob_pdobject, gensym("pd"));
105} 105}
106/* Copyright (c) 1997-1999 Miller Puckette.
107* For information on usage and redistribution, and for a DISCLAIMER OF ALL
108* WARRANTIES, see the file, "LICENSE.txt," in this distribution. */
109
110#include "m_pd.h"
111#include "m_imp.h"
112
113t_class *glob_pdobject;
114static t_class *maxclass;
115
116/* These "glob" routines, which implement messages to Pd, are from all
117over. Some others are prototyped in m_imp.h as well. */
118
119void glob_setfilename(void *dummy, t_symbol *name, t_symbol *dir);
120void glob_quit(void *dummy);
121void glob_dsp(void *dummy, t_symbol *s, int argc, t_atom *argv);
122void glob_meters(void *dummy, t_floatarg f);
123void glob_key(void *dummy, t_symbol *s, int ac, t_atom *av);
124void glob_audiostatus(void *dummy);
125void glob_finderror(t_pd *dummy);
126void glob_audio_properties(t_pd *dummy, t_floatarg flongform);
127void glob_audio_dialog(t_pd *dummy, t_symbol *s, int argc, t_atom *argv);
128void glob_audio_setapi(t_pd *dummy, t_floatarg f);
129void glob_midi_properties(t_pd *dummy, t_floatarg flongform);
130void glob_midi_dialog(t_pd *dummy, t_symbol *s, int argc, t_atom *argv);
131void glob_start_path_dialog(t_pd *dummy, t_floatarg flongform);
132void glob_path_dialog(t_pd *dummy, t_symbol *s, int argc, t_atom *argv);
133void glob_ping(t_pd *dummy);
134
135void alsa_resync( void);
136
137
138#ifdef MSW
139void glob_audio(void *dummy, t_floatarg adc, t_floatarg dac);
140#endif
141
142/* a method you add for debugging printout */
143void glob_foo(void *dummy, t_symbol *s, int argc, t_atom *argv);
144
145#if 0
146void glob_foo(void *dummy, t_symbol *s, int argc, t_atom *argv)
147{
148 *(int *)1 = 3;
149}
150#endif
151
152void max_default(t_pd *x, t_symbol *s, int argc, t_atom *argv)
153{
154 int i;
155 char str[80];
156 startpost("%s: unknown message %s ", class_getname(pd_class(x)),
157 s->s_name);
158 for (i = 0; i < argc; i++)
159 {
160 atom_string(argv+i, str, 80);
161 poststring(str);
162 }
163 endpost();
164}
165
166void glob_init(void)
167{
168 maxclass = class_new(gensym("max"), 0, 0, sizeof(t_pd),
169 CLASS_DEFAULT, A_NULL);
170 class_addanything(maxclass, max_default);
171 pd_bind(&maxclass, gensym("max"));
172 106
173 glob_pdobject = class_new(gensym("pd"), 0, 0, sizeof(t_pd),
174 CLASS_DEFAULT, A_NULL);
175 class_addmethod(glob_pdobject, (t_method)glob_initfromgui, gensym("init"),
176 A_GIMME, 0);
177 class_addmethod(glob_pdobject, (t_method)glob_setfilename, gensym("filename"),
178 A_SYMBOL, A_SYMBOL, 0);
179 class_addmethod(glob_pdobject, (t_method)glob_evalfile, gensym("open"),
180 A_SYMBOL, A_SYMBOL, 0);
181 class_addmethod(glob_pdobject, (t_method)glob_quit, gensym("quit"), 0);
182 class_addmethod(glob_pdobject, (t_method)glob_foo, gensym("foo"), A_GIMME, 0);
183 class_addmethod(glob_pdobject, (t_method)glob_dsp, gensym("dsp"), A_GIMME, 0);
184 class_addmethod(glob_pdobject, (t_method)glob_meters, gensym("meters"),
185 A_FLOAT, 0);
186 class_addmethod(glob_pdobject, (t_method)glob_key, gensym("key"), A_GIMME, 0);
187 class_addmethod(glob_pdobject, (t_method)glob_audiostatus,
188 gensym("audiostatus"), 0);
189 class_addmethod(glob_pdobject, (t_method)glob_finderror,
190 gensym("finderror"), 0);
191 class_addmethod(glob_pdobject, (t_method)glob_audio_properties,
192 gensym("audio-properties"), A_DEFFLOAT, 0);
193 class_addmethod(glob_pdobject, (t_method)glob_audio_dialog,
194 gensym("audio-dialog"), A_GIMME, 0);
195 class_addmethod(glob_pdobject, (t_method)glob_audio_setapi,
196 gensym("audio-setapi"), A_FLOAT, 0);
197 class_addmethod(glob_pdobject, (t_method)glob_midi_properties,
198 gensym("midi-properties"), A_DEFFLOAT, 0);
199 class_addmethod(glob_pdobject, (t_method)glob_midi_dialog,
200 gensym("midi-dialog"), A_GIMME, 0);
201 class_addmethod(glob_pdobject, (t_method)glob_start_path_dialog,
202 gensym("start-path-dialog"), A_DEFFLOAT, 0);
203 class_addmethod(glob_pdobject, (t_method)glob_path_dialog,
204 gensym("path-dialog"), A_GIMME, 0);
205#ifdef __linux__
206 class_addmethod(glob_pdobject, (t_method)glob_ping, gensym("ping"), 0);
207#endif
208 class_addanything(glob_pdobject, max_default);
209 pd_bind(&glob_pdobject, gensym("pd"));
210}