Changeset 413
- Timestamp:
- 07/20/06 09:55:37 (2 years ago)
- Files:
-
- aube/branches/aube-gtk2/src/about_dialog.c (modified) (1 diff)
- aube/branches/aube-gtk2/src/aube.c (modified) (5 diffs)
- aube/branches/aube-gtk2/src/inputoption.c (modified) (2 diffs)
- aube/branches/aube-gtk2/src/master.c (modified) (1 diff)
- aube/branches/aube-gtk2/src/modulemenu.c (modified) (2 diffs)
- aube/branches/aube-gtk2/src/modules/atonal.c (modified) (2 diffs)
- aube/branches/aube-gtk2/src/modules/delay.c (modified) (2 diffs)
- aube/branches/aube-gtk2/src/modules/drummachine.c (modified) (2 diffs)
- aube/branches/aube-gtk2/src/modules/filter_reslp.c (modified) (2 diffs)
- aube/branches/aube-gtk2/src/modules/general_mixer.c (modified) (2 diffs)
- aube/branches/aube-gtk2/src/modules/general_mixer_if.c (modified) (2 diffs)
- aube/branches/aube-gtk2/src/modules/klavier.c (modified) (2 diffs)
- aube/branches/aube-gtk2/src/modules/line.c (modified) (10 diffs)
- aube/branches/aube-gtk2/src/modules/minimaube.c (modified) (2 diffs)
- aube/branches/aube-gtk2/src/modules/minimaube_if.c (modified) (3 diffs)
- aube/branches/aube-gtk2/src/modules/minitracker.c (modified) (2 diffs)
- aube/branches/aube-gtk2/src/modules/minitracker_if.c (modified) (1 diff)
- aube/branches/aube-gtk2/src/modules/panner.c (modified) (2 diffs)
- aube/branches/aube-gtk2/src/modules/panner4.c (modified) (2 diffs)
- aube/branches/aube-gtk2/src/modules/sample_recorder.c (modified) (2 diffs)
- aube/branches/aube-gtk2/src/modules/syre.c (modified) (2 diffs)
- aube/branches/aube-gtk2/src/modules/syre_if.c (modified) (1 diff)
- aube/branches/aube-gtk2/src/modules/whitenoise.c (modified) (2 diffs)
- aube/branches/aube-gtk2/src/modules/xfader.c (modified) (2 diffs)
- aube/branches/aube-gtk2/src/none.c (modified) (1 diff)
- aube/branches/aube-gtk2/src/slider.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
aube/branches/aube-gtk2/src/about_dialog.c
r406 r413 125 125 return TRUE; 126 126 127 s printf(buf, "%s/aube_logo.ppm", DATADIR);127 snprintf(buf, sizeof (buf), "%s/aube_logo.ppm", DATADIR); 128 128 129 129 fp = fopen(buf, "rb"); aube/branches/aube-gtk2/src/aube.c
r410 r413 176 176 out->parms.ch_type = ch_type; 177 177 out->module = m; 178 s printf(out->u_label, "%s", label);178 snprintf(out->u_label, sizeof (out->u_label), "%s", label); 179 179 out->data = data; 180 180 } … … 287 287 aube_add_module(module * module) 288 288 { 289 char temp [sizeof (module->u_label)] ; 289 290 aube_daddy->modules[aube_daddy->nr_modules] = module; 290 291 aube_daddy->nr_modules++; … … 294 295 /*aube_daddy->types[module->type].instances++;*/ 295 296 module->class->instances++; 296 sprintf(module->u_label, "%s-%d", module->u_label, 297 module->class->instances); 297 298 /* If we're using snprintf, we need to store the existing string first. */ 299 snprintf(temp, sizeof (temp), "%s", module->u_label); 300 sprintf(module->u_label, "%s-%d", temp, module->class->instances); 298 301 /* 299 302 aube_daddy->types[module->type].instances); … … 390 393 } 391 394 } 392 s printf((char *) a->types[i].type_label, "%s", typename);395 snprintf((char *) a->types[i].type_label, sizeof (a->types[i].type_label), "%s", typename); 393 396 a->types[i].type = i; 394 397 a->types[i].instances = 0; … … 409 412 410 413 gtk_init(&argc, &argv); 411 s printf(buf, "%s/gtkrc", DATADIR);414 snprintf(buf, sizeof (buf), "%s/gtkrc", DATADIR); 412 415 gtk_rc_parse(buf); 413 416 aube/branches/aube-gtk2/src/inputoption.c
r406 r413 180 180 for (i = -1; i < (int) (aube_daddy->nr_samples); i++) { 181 181 if (i == -1) { 182 s printf(buf, "None");182 snprintf(buf, sizeof (buf), "None"); 183 183 INPUTOPTION(data)->ip[k].ch = NULL; 184 184 } else { 185 s printf(buf, "%s", aube_daddy->samples[i]->u_label);185 snprintf(buf, sizeof (buf), "%s", aube_daddy->samples[i]->u_label); 186 186 INPUTOPTION(data)->ip[k].ch = aube_daddy->samples[i]; 187 187 } … … 214 214 215 215 if (i == 0) 216 s printf(buf, "None");216 snprintf(buf, sizeof (buf), "None"); 217 217 else if (aube_daddy->modules[i]->nr_outputs == 1) 218 s printf(buf, "%s", aube_daddy->modules[i]->u_label);218 snprintf(buf, sizeof (buf), "%s", aube_daddy->modules[i]->u_label); 219 219 else 220 s printf(buf, "%s:%s", aube_daddy->modules[i]->u_label,220 snprintf(buf, sizeof (buf), "%s:%s", aube_daddy->modules[i]->u_label, 221 221 INPUTOPTION(data)->ip[k].ch->u_label); 222 222 aube/branches/aube-gtk2/src/master.c
r412 r413 192 192 title[2] = buf2; 193 193 for (i = 0; i < aube_daddy->nr_samples; i++) { 194 s printf(title[0], "%02d", i);194 snprintf(title[0], sizeof(title[0]), "%02d", i); 195 195 title[1] = aube_daddy->samples[i]->u_label; 196 s printf(title[2], "%d",196 snprintf(title[2], sizeof(title[2]), "%d", 197 197 aube_daddy->samples[i]->parms.d.audio_sample_data.s_length); 198 198 gtk_clist_append(clist, (gchar **) & title); aube/branches/aube-gtk2/src/modulemenu.c
r406 r413 75 75 UNITMENU(modulemenu)->up[k].selected_module = u; 76 76 77 s printf(buf, "%s", u->u_label);77 snprintf(buf, sizeof (buf), "%s", u->u_label); 78 78 79 79 menuitem = gtk_menu_item_new_with_label(buf); … … 86 86 } 87 87 if (k == 0) { 88 s printf(buf, "None");88 snprintf(buf, sizeof (buf), "None"); 89 89 90 90 menuitem = gtk_menu_item_new_with_label(buf); aube/branches/aube-gtk2/src/modules/atonal.c
r372 r413 55 55 56 56 aube_module_clear_outputs((module *)s); 57 s printf(s->module.u_label, "atonal");57 snprintf(s->module.u_label, sizeof (s->module.u_label), "atonal"); 58 58 59 59 s->module.do_tick = (void *)atonal_calc_note; … … 84 84 85 85 aube_module_clear_outputs((module *)s); 86 s printf(s->module.u_label, "atonal");86 snprintf(s->module.u_label, sizeof (s->module.u_label), "atonal"); 87 87 88 88 s->module.do_tick = (void *)atonal_calc_note; aube/branches/aube-gtk2/src/modules/delay.c
r372 r413 51 51 52 52 aube_module_clear_outputs((module *) dl); 53 s printf(dl->module.u_label, "delay");53 snprintf(dl->module.u_label, sizeof (dl->module.u_label), "delay"); 54 54 55 55 dl->module.do_tick = (void *) delay_calc_note; … … 81 81 82 82 aube_module_clear_outputs((module *) dl); 83 s printf(dl->module.u_label, "delay");83 snprintf(dl->module.u_label, sizeof (dl->module.u_label), "delay"); 84 84 85 85 dl->module.do_tick = (void *) delay_calc_note; aube/branches/aube-gtk2/src/modules/drummachine.c
r372 r413 60 60 s->module.outputs[i]->data = (seq_channel *) (&(s->seq_ch[i])); 61 61 snprintf(buf, 4, "%d", i); 62 s printf(s->module.outputs[i]->u_label, buf);62 snprintf(s->module.outputs[i]->u_label, sizeof (s->module.outputs[i]->u_label), buf); 63 63 s->module.outputs[i]->module = (module *) s; 64 64 } 65 65 aube_module_clear_outputs((module *) s); 66 s printf(s->module.u_label, "drummachine");66 snprintf(s->module.u_label, sizeof (s->module.u_label), "drummachine"); 67 67 68 68 s->module.do_tick = (void *) drummachine_calc_note; … … 98 98 s->module.outputs[i]->data = (seq_channel *) (&(s->seq_ch[i])); 99 99 s->module.outputs[i]->module = (module *) s; 100 snprintf(buf, 4, "%d", i);101 s printf(s->module.outputs[i]->u_label, buf);100 snprintf(buf, sizeof (buf), "%d", i); 101 snprintf(s->module.outputs[i]->u_label, sizeof(s->module.outputs[i]->u_label), buf); 102 102 } 103 103 aube_module_clear_outputs((module *) s); 104 s printf(s->module.u_label, "drummachine");104 snprintf(s->module.u_label, sizeof (s->module.u_label), "drummachine"); 105 105 106 106 s->module.do_tick = (void *) drummachine_calc_note; aube/branches/aube-gtk2/src/modules/filter_reslp.c
r372 r413 65 65 s->module.outputs[0]->data = (bit16 *) (&(s->tick_buffer)); 66 66 aube_module_clear_outputs((module *) s); 67 s printf(s->module.u_label, "reslp");68 s printf(s->module.outputs[0]->u_label, "out");67 snprintf(s->module.u_label, sizeof (s->module.u_label), "reslp"); 68 snprintf(s->module.outputs[0]->u_label, sizeof (s->module.outputs[0]->u_label), "out"); 69 69 s->module.outputs[0]->module = (module *) s; 70 70 … … 116 116 s->module.outputs[0]->data = (bit16 *) (&(s->tick_buffer)); 117 117 aube_module_clear_outputs((module *) s); 118 s printf(s->module.u_label, "reslp");119 s printf(s->module.outputs[0]->u_label, "out");118 snprintf(s->module.u_label, sizeof (s->module.u_label), "reslp"); 119 snprintf(s->module.outputs[0]->u_label, sizeof (s->module.outputs[0]->u_label), "out"); 120 120 s->module.outputs[0]->module = (module *) s; 121 121 aube/branches/aube-gtk2/src/modules/general_mixer.c
r372 r413 58 58 aube_module_clear_outputs((module *) xf); 59 59 60 s printf(xf->module.u_label, "mixer"); /*60 snprintf(xf->module.u_label, sizeof (xf->module.u_label), "mixer"); /* 61 61 not general_mixer for conciseness 62 62 */ 63 s printf(xf->module.outputs[0]->u_label, "out");63 snprintf(xf->module.outputs[0]->u_label, sizeof (xf->module.outputs[0]->u_label), "out"); 64 64 xf->module.outputs[0]->module = (module *) xf; 65 65 … … 106 106 aube_module_clear_outputs((module *) xf); 107 107 108 s printf(xf->module.u_label, "mixer");109 s printf(xf->module.outputs[0]->u_label, "out");108 snprintf(xf->module.u_label, sizeof (xf->module.u_label), "mixer"); 109 snprintf(xf->module.outputs[0]->u_label, sizeof (xf->module.outputs[0]->u_label), "out"); 110 110 xf->module.outputs[0]->module = (module *) xf; 111 111 aube/branches/aube-gtk2/src/modules/general_mixer_if.c
r412 r413 238 238 gtk_widget_show(vbox); 239 239 240 s printf(buf, "%d:", i);240 snprintf(buf, sizeof (buf), "%d:", i); 241 241 button = inputoption_new(buf, 242 242 (module *) GENERAL_MIXER_IF(general_mixer_if)->data, i); … … 245 245 gtk_widget_show(button); 246 246 247 s printf(buf, "%d", i);247 snprintf(buf, sizeof (buf), "%d", i); 248 248 slider = slider_int_new(buf, &(general_mixer_if->data->vol[i]), 0, 64, 1); 249 249 gtk_box_pack_start(GTK_BOX(vbox), slider, TRUE, TRUE, 0); aube/branches/aube-gtk2/src/modules/klavier.c
r372 r413 52 52 s->module.outputs[0]->data = (seq_channel *) (&(s->seq_ch)); 53 53 aube_module_clear_outputs((module *) s); 54 s printf(s->module.u_label, "klavier");55 s printf(s->module.outputs[0]->u_label, "seq");54 snprintf(s->module.u_label, sizeof (s->module.u_label), "klavier"); 55 snprintf(s->module.outputs[0]->u_label, sizeof (s->module.outputs[0]->u_label), "seq"); 56 56 s->module.outputs[0]->module = (module *) s; 57 57 … … 81 81 s->module.outputs[0]->data = (seq_channel *) (&(s->seq_ch)); 82 82 aube_module_clear_outputs((module *) s); 83 s printf(s->module.u_label, "klavier");84 s printf(s->module.outputs[0]->u_label, "seq");83 snprintf(s->module.u_label, sizeof (s->module.u_label), "klavier"); 84 snprintf(s->module.outputs[0]->u_label, sizeof (s->module.outputs[0]->u_label), "seq"); 85 85 s->module.outputs[0]->module = (module *) s; 86 86 aube/branches/aube-gtk2/src/modules/line.c
r372 r413 132 132 oss_o->output_module.inputs[0]->channel = NULL; 133 133 oss_o->output_module.nr_outputs = 0; 134 s printf(oss_o->output_module.u_label, "Line-Out");134 snprintf(oss_o->output_module.u_label, sizeof (oss_o->output_module.u_label), "Line-Out"); 135 135 aube_add_module(&oss_o->output_module); 136 136 … … 174 174 oss_i->input_module.outputs[0]->data = (bit16 *) (&oss_i->tick_buffer); 175 175 aube_module_clear_outputs(&oss_i->input_module); 176 s printf(oss_i->input_module.u_label, "Line-In");177 s printf(oss_i->input_module.outputs[0]->u_label, "line");176 snprintf(oss_i->input_module.u_label, sizeof (oss_i->input_module.u_label), "Line-In"); 177 snprintf(oss_i->input_module.outputs[0]->u_label, sizeof (oss_i->input_module.outputs[0]->u_label), "line"); 178 178 oss_i->input_module.outputs[0]->module = &oss_i->input_module; 179 179 aube_add_module(&oss_i->input_module); … … 234 234 #endif 235 235 236 s printf(buf, "OSS: Error writing to %s (%d)",236 snprintf(buf, sizeof (buf), "OSS: Error writing to %s (%d)", 237 237 oss_p->dev->devicename, errno); 238 238 perror(buf); … … 259 259 } 260 260 if ((n = write(oss_p->dev->file, b, tick)) == -1) { 261 s printf(buf, "OSS: Error writing to %s", oss_p->dev->devicename);261 snprintf(buf, sizeof (buf), "OSS: Error writing to %s", oss_p->dev->devicename); 262 262 perror(buf); 263 263 #ifdef DEBUG … … 352 352 353 353 if ((oss_d->file = open(oss_d->devicename, O_WRONLY, 0)) == -1) { 354 s printf(buf, "OSS: Unable to open %s for writing", oss_d->devicename);354 snprintf(buf, sizeof (buf), "OSS: Unable to open %s for writing", oss_d->devicename); 355 355 perror(buf); 356 356 MODULE_OFF_safe(oss_d->writer); … … 360 360 361 361 #ifdef DEBUG 362 s printf(buf, "OSS: opened %s for writing, fd %d",362 snprintf(buf, sizeof (buf), "OSS: opened %s for writing, fd %d", 363 363 oss_d->devicename, oss_d->file); 364 364 perror(buf); … … 371 371 372 372 if ((oss_d->file = open(oss_d->devicename, O_RDONLY | O_NDELAY, 0)) == -1) { 373 s printf(buf, "OSS: Unable to open %s for reading", oss_d->devicename);373 snprintf(buf, sizeof (buf), "OSS: Unable to open %s for reading", oss_d->devicename); 374 374 perror(buf); 375 375 MODULE_OFF_safe(oss_d->writer); … … 378 378 } else { 379 379 #ifdef DEBUG 380 s printf(buf, "OSS: opened %s for reading, fd %d",380 snprintf(buf, sizeof (buf), "OSS: opened %s for reading, fd %d", 381 381 oss_d->devicename, oss_d->file); 382 382 perror(buf); … … 389 389 390 390 if ((oss_d->file = open(oss_d->devicename, O_RDWR | O_NDELAY, 0)) == -1) { 391 s printf(buf, "OSS: Unable to open %s for duplex", oss_d->devicename);391 snprintf(buf, sizeof (buf), "OSS: Unable to open %s for duplex", oss_d->devicename); 392 392 perror(buf); 393 393 MODULE_OFF_safe(oss_d->writer); … … 396 396 } else { 397 397 #ifdef DEBUG 398 s printf(buf, "OSS: opened %s for duplex, fd %d",398 snprintf(buf, sizeof (buf), "OSS: opened %s for duplex, fd %d", 399 399 oss_d->devicename, oss_d->file); 400 400 perror(buf); aube/branches/aube-gtk2/src/modules/minimaube.c
r372 r413 57 57 s->module.outputs[i]->parms.ch_type = CH_TYPE_AUDIO_STREAM; 58 58 s->module.outputs[i]->data = (bit16 *) (&(s->tick_buffer[i])); 59 s printf(s->module.outputs[i]->u_label, "%d", i);59 snprintf(s->module.outputs[i]->u_label, sizeof (s->module.outputs[i]->u_label), "%d", i); 60 60 s->module.outputs[i]->module = (module *) s; 61 61 } 62 62 aube_module_clear_outputs((module *) s); 63 s printf(s->module.u_label, "s-player");63 snprintf(s->module.u_label, sizeof (s->module.u_label), "s-player"); 64 64 65 65 s->module.do_tick = (void *) minimaube_calc_note; … … 100 100 101 101 aube_module_clear_outputs((module *) s); 102 s printf(s->module.u_label, "minimaube");103 s printf(s->module.outputs[0]->u_label, "out");102 snprintf(s->module.u_label, sizeof (s->module.u_label), "minimaube"); 103 snprintf(s->module.outputs[0]->u_label, sizeof (s->module.outputs[0]->u_label), "out"); 104 104 s->module.outputs[0]->module = (module *) s; 105 105 aube/branches/aube-gtk2/src/modules/minimaube_if.c
r412 r413 233 233 gtk_widget_show(hbox); 234 234 235 s printf(buf, "%d:", i);235 snprintf(buf, sizeof (buf), "%d:", i); 236 236 widget = gtk_label_new(buf); 237 237 gtk_box_pack_start(GTK_BOX(hbox), widget, FALSE, TRUE, 1); … … 262 262 gtk_widget_show(vbox); 263 263 264 s printf(buf, "%d:", i);264 snprintf(buf, sizeof (buf), "%d:", i); 265 265 button = inputoption_new(buf, 266 266 (module *) MINIMAUBE_IF(minimaube_if)->data, i); … … 269 269 gtk_widget_show(button); 270 270 271 s printf(buf, "%d", i);271 snprintf(buf, sizeof (buf), "%d", i); 272 272 slider = slider_int_new(buf, &(minimaube_if->data->vol[i]), 0, 64, 1); 273 273 gtk_box_pack_start(GTK_BOX(vbox), slider, TRUE, FALSE, 0); aube/branches/aube-gtk2/src/modules/minitracker.c
r372 r413 56 56 s->module.outputs[0]->data = (seq_channel *) (&(s->seq_ch)); 57 57 aube_module_clear_outputs((module *) s); 58 s printf(s->module.u_label, "minitracker");59 s printf(s->module.outputs[0]->u_label, "seq");58 snprintf(s->module.u_label, sizeof (s->module.u_label), "minitracker"); 59 snprintf(s->module.outputs[0]->u_label, sizeof (s->module.outputs[0]->u_label), "seq"); 60 60 s->module.outputs[0]->module = (module *) s; 61 61 … … 93 93 s->module.outputs[0]->data = (seq_channel *) (&(s->seq_ch)); 94 94 aube_module_clear_outputs((module *) s); 95 s printf(s->module.u_label, "minitracker");96 s printf(s->module.outputs[0]->u_label, "seq");95 snprintf(s->module.u_label, sizeof (s->module.u_label), "minitracker"); 96 snprintf(s->module.outputs[0]->u_label, sizeof (s->module.outputs[0]->u_label), "seq"); 97 97 s->module.outputs[0]->module = (module *) s; 98 98 aube/branches/aube-gtk2/src/modules/minitracker_if.c
r412 r413 334 334 title[3] = buf3; 335 335 for (i = 0; i < SEQ_LENGTH; i++) { 336 s printf(title[0], "%02d", i);337 /* s printf(title[1], "%d", tracker->data->sequence[i].note);*/338 s printf (title[1], "%s", note_names[tracker->data->sequence[i].note]);339 s printf(title[2], "%02d", 0);340 s printf(title[3], "%02d", 0);336 snprintf(title[0], sizeof (title[0]), "%02d", i); 337 /* snprintf(title[1], sizeof (title[1]), "%d", tracker->data->sequence[i].note);*/ 338 snprintf(title[1], sizeof (title[1]), "%s", note_names[tracker->data->sequence[i].note]); 339 snprintf(title[2], sizeof (title[2]), "%02d", 0); 340 snprintf(title[3], sizeof (title[3]), "%02d", 0); 341 341 342 342 gtk_clist_append(GTK_CLIST(tracker->tl), (gchar **) & title); aube/branches/aube-gtk2/src/modules/panner.c
r372 r413 52 52 53 53 aube_module_clear_outputs((module *) pn); 54 s printf(pn->module.u_label, "panner");55 s printf(pn->module.outputs[0]->u_label, "out");54 snprintf(pn->module.u_label, sizeof (pn->module.u_label), "panner"); 55 snprintf(pn->module.outputs[0]->u_label, sizeof (pn->module.outputs[0]->u_label), "out"); 56 56 pn->module.outputs[0]->module = (module *) pn; 57 57 … … 84 84 85 85 aube_module_clear_outputs((module *) pn); 86 s printf(pn->module.u_label, "panner");87 s printf(pn->module.outputs[0]->u_label, "out");86 snprintf(pn->module.u_label, sizeof (pn->module.u_label), "panner"); 87 snprintf(pn->module.outputs[0]->u_label, sizeof (pn->module.outputs[0]->u_label), "out"); 88 88 pn->module.outputs[0]->module = (module *) pn; 89 89 aube/branches/aube-gtk2/src/modules/panner4.c
r372 r413 55 55 56 56 aube_module_clear_outputs((module *) pn); 57 s printf(pn->module.u_label, "panner4");58 s printf(pn->module.outputs[0]->u_label, "fwd");57 snprintf(pn->module.u_label, sizeof (pn->module.u_label), "panner4"); 58 snprintf(pn->module.outputs[0]->u_label, sizeof (pn->module.outputs[0]->u_label), "fwd"); 59 59 pn->module.outputs[0]->module = (module *) pn; 60 s printf(pn->module.outputs[1]->u_label, "rear");60 snprintf(pn->module.outputs[1]->u_label, sizeof (pn->module.outputs[1]->u_label), "rear"); 61 61 pn->module.outputs[1]->module = (module *) pn; 62 62 … … 93 93 94 94 aube_module_clear_outputs((module *) pn); 95 s printf(pn->module.u_label, "panner4");96 s printf(pn->module.outputs[0]->u_label, "fwd");95 snprintf(pn->module.u_label, sizeof (pn->module.u_label), "panner4"); 96 snprintf(pn->module.outputs[0]->u_label, sizeof (pn->module.outputs[0]->u_label), "fwd"); 97 97 pn->module.outputs[0]->module = (module *) pn; 98 s printf(pn->module.outputs[1]->u_label, "rear");98 snprintf(pn->module.outputs[1]->u_label, sizeof (pn->module.outputs[1]->u_label), "rear"); 99 99 pn->module.outputs[1]->module = (module *) pn; 100 100 aube/branches/aube-gtk2/src/modules/sample_recorder.c
r372 r413 58 58 59 59 aube_module_clear_outputs((module *) sr); 60 s printf(sr->module.u_label, "s-recorder");61 s printf(sr->module.outputs[0]->u_label, "out");60 snprintf(sr->module.u_label, sizeof (sr->module.u_label), "s-recorder"); 61 snprintf(sr->module.outputs[0]->u_label, sizeof (sr->module.outputs[0]->u_label), "out"); 62 62 sr->module.outputs[0]->module = (module *) sr; 63 63 … … 95 95 96 96 aube_module_clear_outputs((module *) sr); 97 s printf(sr->module.u_label, "s_rec");98 s printf(sr->module.outputs[0]->u_label, "out");97 snprintf(sr->module.u_label, sizeof (sr->module.u_label), "s_rec"); 98 snprintf(sr->module.outputs[0]->u_label, sizeof (sr->module.outputs[0]->u_label), "out"); 99 99 sr->module.outputs[0]->module = (module *) sr; 100 100 aube/branches/aube-gtk2/src/modules/syre.c
r372 r413 76 76 s->module.outputs[0]->data = (bit16 *) (&(s->tick_buffer)); 77 77 aube_module_clear_outputs((module *) s); 78 s printf(s->module.u_label, "syre");79 s printf(s->module.outputs[0]->u_label, "out");78 snprintf(s->module.u_label, sizeof (s->module.u_label), "syre"); 79 snprintf(s->module.outputs[0]->u_label, sizeof (s->module.outputs[0]->u_label), "out"); 80 80 s->module.outputs[0]->module = (module *) s; 81 81 … … 133 133 s->module.outputs[0]->data = (bit16 *) (&(s->tick_buffer)); 134 134 aube_module_clear_outputs((module *) s); 135 s printf(s->module.u_label, "syre");136 s printf(s->module.outputs[0]->u_label, "out");135 snprintf(s->module.u_label, sizeof (s->module.u_label), "syre"); 136 snprintf(s->module.outputs[0]->u_label, sizeof (s->module.outputs[0]->u_label), "out"); 137 137 s->module.outputs[0]->module = (module *) s; 138 138 aube/branches/aube-gtk2/src/modules/syre_if.c
r412 r413 342 342 343 343 for (i = 0; i < NUM_HARMONICS; i++) { 344 s printf(nc, "%d", i);344 snprintf(nc, sizeof (nc), "%d", i); 345 345 syre_if->sliders[i] = 346 346 slider_int_new(nc, &(syre_if->data->overtones[i].vol), 0, 32, 1); aube/branches/aube-gtk2/src/modules/whitenoise.c
r372 r413 53 53 */ 54 54 aube_module_clear_outputs((module *) wn); 55 s printf(wn->module.u_label, "w-noise");56 s printf(wn->module.outputs[0]->u_label, "out");55 snprintf(wn->module.u_label, sizeof (wn->module.u_label), "w-noise"); 56 snprintf(wn->module.outputs[0]->u_label, sizeof (wn->module.outputs[0]->u_label), "out"); 57 57 wn->module.outputs[0]->module = (module *) wn; 58 58 … … 82 82 83 83 aube_module_clear_outputs((module *) wn); 84 s printf(wn->module.u_label, "w-noise");85 s printf(wn->module.outputs[0]->u_label, "out");84 snprintf(wn->module.u_label, sizeof (wn->module.u_label), "w-noise"); 85 snprintf(wn->module.outputs[0]->u_label, sizeof (wn->module.outputs[0]->u_label), "out"); 86 86 wn->module.outputs[0]->module = (module *) wn; 87 87 aube/branches/aube-gtk2/src/modules/xfader.c
r372 r413 56 56 */ 57 57 aube_module_clear_outputs((module *) xf); 58 s printf(xf->module.u_label, "xfader");59 s printf(xf->module.outputs[0]->u_label, "out");58 snprintf(xf->module.u_label, sizeof (xf->module.u_label), "xfader"); 59 snprintf(xf->module.outputs[0]->u_label, sizeof (xf->module.outputs[0]->u_label), "out"); 60 60 xf->module.outputs[0]->module = (module *) xf; 61 61 … … 90 90 xf->module.outputs[0]->data = (bit16 *) (&(xf->tick_buffer)); 91 91 aube_module_clear_outputs((module *) xf); 92 s printf(xf->module.u_label, "xfader");93 s printf(xf->module.outputs[0]->u_label, "out");92 snprintf(xf->module.u_label, sizeof (xf->module.u_label), "xfader"); 93 snprintf(xf->module.outputs[0]->u_label, sizeof (xf->module.outputs[0]->u_label), "out"); 94 94 xf->module.outputs[0]->module = (module *) xf; 95 95 aube/branches/aube-gtk2/src/none.c
r372 r413 48 48 aube_module_clear_outputs((module *) nn); 49 49 50 s printf(nn->module.u_label, "None");51 s printf(nn->module.outputs[0]->u_label, "out");50 snprintf(nn->module.u_label, sizeof (nn->module.u_label), "None"); 51 snprintf(nn->module.outputs[0]->u_label, sizeof (nn->module.outputs[0]->u_label), "out"); 52 52 nn->module.outputs[0]->module = (module *) nn; 53 s printf(nn->module.outputs[1]->u_label, "seq");53 snprintf(nn->module.outputs[1]->u_label, sizeof (nn->module.outputs[1]->u_label), "seq"); 54 54 nn->module.outputs[1]->module = (module *) nn; 55 55 aube/branches/aube-gtk2/src/slider.c
r412 r413 12 12 13 13 GType 14 slider_get_type( void)14 slider_get_type() 15 15 { 16 16 static GType b_type = 0; … … 61 61 slider->data.iptr = data; 62 62 63 s printf (slider->value_str, "%d", *data);63 snprintf (slider->value_str, sizeof (slider->value_str), "%d", *data); 64 64 slider->value_label = gtk_label_new (slider->value_str); 65 65 gtk_box_pack_start (GTK_BOX (slider), slider->value_label, FALSE, TRUE, 0);
