Channel *glue_addChannel(int column, int type) { Channel *ch = G_Mixer.addChannel(type); gChannel *gch = mainWin->keyboard->addChannel(column, ch); ch->guiChannel = gch; glue_setChanVol(ch, 1.0, false); // false = not from gui click return ch; }
int glue_cloneChannel(Channel *src) { Channel *ch = G_Mixer.addChannel(src->type); gChannel *gch = mainWin->keyboard->addChannel(src->guiChannel->getColumnIndex(), ch); ch->guiChannel = gch; ch->copy(src); mainWin->keyboard->updateChannel(ch->guiChannel); return true; }