Hi Oriol and others,
and thanks for the XML cutout. That did it. Now I could reproduce the
segfault.
You know the nasty "variable might be used uninitialized in function x"
compiler warning? Well, I did just that. Use an uninitialized struct if
there's something other than 0xB? or 0x9? in the status register. I
fixed that, see attached patch. One segfault less, I hope.
Sorry about that one, that was a perfect example of sloppiness.
- Ján
Hi Jan,
I'm all for helping you if I can. Maybe Thomas could make a quick test
to see if the problem involves sending midi to any BCD3000, or it's
just something weird about my unit or my PC configuration. Thomas, are
you using mixxx on Linux? You could try to add the following lines to
your xml file and check if the led on the play key works:
<lights>
<light>
<group>[Channel1]</group>
<key>play</key>
<status>0x7F</status>
<midino>0x12</midino>
<threshold>0.5</threshold>
</light>
</lights>
Another possibility is that I messed up with this xml config. I will
send you tonight the BCD3000 manual page where it explains the midi
commands to be sent for led control on the BCD3000.
Index: mixxx/src/midiobjectalsaseq.cpp
===================================================================
--- mixxx/src/midiobjectalsaseq.cpp (revision 1855)
+++ mixxx/src/midiobjectalsaseq.cpp (working copy)
@@ -326,10 +326,11 @@
switch ((byte1 & 0xf0)) {
case 0x90:
snd_seq_ev_set_noteon(&ev, byte1&0xf, byte2, byte3);
+ snd_seq_event_output_direct(m_handle, &ev);
break;
case 0xb0:
snd_seq_ev_set_controller(&ev, byte1&0xf, byte2, byte3);
+ snd_seq_event_output_direct(m_handle, &ev);
break;
}
- snd_seq_event_output_direct(m_handle, &ev);
}
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Mixxx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mixxx-devel