This commit is contained in:
tzim 2014-05-19 14:12:25 +00:00
parent b93a02e033
commit d48ab853df
2 changed files with 5 additions and 1 deletions

View file

@ -70,7 +70,7 @@ namespace DMX2
manager.RegisterProvider (this);
AlsaSeqLib.Init ();
// Connection au port d'annonce pour detection auto
//midiPortAutoConnect.Add("System:Announce");
midiPortAutoConnect.Add("BCF2000:BCF2000 MIDI 1");
AlsaSeqLib.ConnectFrom(AlsaSeqLib.SND_SEQ_CLIENT_SYSTEM, AlsaSeqLib.SND_SEQ_PORT_SYSTEM_ANNOUNCE);
foreach (var cli in AlsaSeqLib.EnumClients()) {

View file

@ -127,6 +127,7 @@ namespace DMX2
Dictionary<string,int> valeursrecues= new Dictionary<string, int>();
SequenceurLineaire seq;
int max=0, signe=-2;
bool nofeedbackflag = false;
bool attache;
@ -156,7 +157,9 @@ namespace DMX2
if (cs==0 || cs!=signe) Attache=true;
else return true ;
}
nofeedbackflag = true;
seq.ChangeValeur(circuit,max);
nofeedbackflag = false;
return true;
}
@ -181,6 +184,7 @@ namespace DMX2
}
public void FeedBack(byte data){
if(nofeedbackflag) return;
foreach (var fb in feedbacks)
fb.FeedBack(data);
}