| 205 | } |
| 206 | |
| 207 | void process(t_symbol* s, int argc, t_atom* argv) |
| 208 | { |
| 209 | // First try to process messages handled explicitely in the object |
| 210 | if(messages_setup.process_messages(implementation, s, argc, argv)) |
| 211 | return; |
| 212 | |
| 213 | // Then some default behaviour |
| 214 | switch(argc) |
| 215 | { |
| 216 | case 0: // bang |
| 217 | { |
| 218 | if(strcmp(s->s_name, "bang") == 0) |
| 219 | { |
| 220 | // Unlike message_processor, here we don't run operator() which is |
| 221 | // being run in the dsp system. |
| 222 | |
| 223 | // Just bang the outputs: |
| 224 | // output_setup.commit(implementation); |
| 225 | } |
| 226 | else |
| 227 | { |
| 228 | process_generic_message(implementation, s); |
| 229 | } |
| 230 | break; |
| 231 | } |
| 232 | default: { |
| 233 | // Apply the data to the inlets. |
| 234 | process_inlet_control(s, argc, argv); |
| 235 | |
| 236 | // Then bang |
| 237 | // output_setup.commit(implementation); |
| 238 | |
| 239 | break; |
| 240 | } |
| 241 | } |
| 242 | } |
| 243 | }; |
| 244 | |
| 245 | template <typename T> |
no test coverage detected