{
mixer_type = type;
if (type) {
- sprintf(channel_name, "Out %d", ch);
+ channel_name << "Out " << ch;
} else {
- sprintf(channel_name, "In %d", ch);
+ channel_name << "In " << ch;
}
channel_num = ch;
if (channel_num%2) {
draw_background();
fl_color(FL_BLACK);
fl_font(FL_HELVETICA, 8);
- fl_draw(channel_name, x()+4, y()+225, 27, 9, FL_ALIGN_CENTER);
+ fl_draw(channel_name.str().c_str(), x()+4, y()+225, 27, 9, FL_ALIGN_CENTER);
for (int i=children(); i--;) {
Fl_Widget& o = **a++;
draw_child(o);
#include "HDSPMixerStripData.h"
#include "HDSPMixerMeter.h"
#include "pixmaps.h"
+#include <sstream>
class HDSPMixerWindow;
class HDSPMixerSelector;
private:
char **p_iomixer_xpm;
int channel_num, relative_num, mixer_type;
- char channel_name[6];
+ std::stringstream channel_name;
void update_child(Fl_Widget &widget);
public:
HDSPMixerStripData *data[3][3][8]; /* data[card][mode(ss/ds/qs)][preset number] */