| Sorry! Just browsed the cvs to see that pmidi.c has
been modified to do it. I was looking at the file I had
from the 31-10 package by Michael Gogins. You're
very quick off the mark, John.
Victor
>
> And another thing: the controller initialisation code
> has to be modified here as well, as in midirecv.c.
> I noticed it tries to init cc7-11 in a different way,
> like it was with midirecv.c on cs4.23 previously.
>
> Victor
>
>
> > > Hi John and all,
> > >
> > > Thanks for adding the listing of portmidi devices.
> > > I'm using (I believe) the correct device number now
> > > (-M 1) and things seem to be opening correctly, but
> > > when running , all I get is the following error:
> > >
> > > sensMIDI: retval errno 11
> > >
> > > I tried calling Pm_GetErrorText on the number but got
> an
> > > invalid error number.
> > >
> > > I added some code to check if the Pm_OpenInput
> returned
> > a
> > > non-zero (commited the code to CVS), but there is no
> > > error being reported, so the stream seems to be
> > > opening alright.
> > >
> > > I'm not sure the following is correct in pmidi.c:
> > >
> > > if ((retval=Pm_Poll(midistream))) {
> > > if (retval<0) printf(Str(X_1185,"sensMIDI:
> > > retval errno %d\n"), errno);
> > > if (retval == 0) {
> > > long n = Pm_Read(midistream, bufp,
MBUFSIZ);
> > > bufp = mbuf;
> > > endatp = mbuf + n;
> > > return n;
> > > }
> > > else {
> > > printf(Str(X_1185,"sensMIDI: retval errno
> > > %d\n") ,errno);
> > > }
> > > }
> > > return 0;
> > >
> > > it seems to me that it should check if retval == 1, as
> > > the docs for Pm_Poll say it returns TRUE, FALSE, or
> > > and error number, and TRUE is set to 1. Am I
> > > incorrect?
> > > Thanks,
> > > steven
> > >
> >
> |