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); manager.RegisterProvider (this);
AlsaSeqLib.Init (); AlsaSeqLib.Init ();
// Connection au port d'annonce pour detection auto // 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); AlsaSeqLib.ConnectFrom(AlsaSeqLib.SND_SEQ_CLIENT_SYSTEM, AlsaSeqLib.SND_SEQ_PORT_SYSTEM_ANNOUNCE);
foreach (var cli in AlsaSeqLib.EnumClients()) { foreach (var cli in AlsaSeqLib.EnumClients()) {

View file

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