[PD-dev] Re: [PD] midiout broken

IOhannes m zmoelnig zmoelnig at iem.at
Tue Nov 15 11:45:00 CET 2005


Jamie Bullock wrote:
> I just applied both patches, and tested with external MIDI hardware,
> sending sysex in real time and it works fine. Thanks!

great.

> 
> One observation is that valgrind throws up this:
> 
> ==8036== Conditional jump or move depends on uninitialised value(s)
> ==8036==    at 0x1B9A7C10: snd_seq_event_input_pending
> (in /lib/libasound.so.2.0.0)
> ==8036==    by 0x80F6AB2: sys_alsa_poll_midi (s_midi_alsa.c:195)
> 
> Which seems a bit strange since surely there shouldn't be any pending
> ALSA events when PD starts up.
> 

you could try and initialize midi_handle (and while you are there: 
mididev) to 0 at the beginning of s_midi.alsa.c
this should fix this problem (though i haven't tested)

mfg.ads.r
IOhannes




More information about the Pd-dev mailing list