예제 #1
0
파일: channel.cpp 프로젝트: DomiLou/giada
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;
}
예제 #2
0
파일: channel.cpp 프로젝트: DomiLou/giada
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;
}