René Dudfield wrote: > On Sat, May 30, 2009 at 11:21 PM, Roger Dannenberg <[email protected]> wrote: > >>> WARNING: alsa_abort not implemented >>> >>> >>> >> Means that while portmidi offers an abort function that abruptly stops >> output, this is not implemented in the alsa version. I'm not sure if >> that's a limitation of alsa or just an incomplete implementation. I'm >> guessing this hasn't come up because people rarely call abort. I'll look >> into it. >> >> > > Ah ok. > > Do you think it's ok to just call Pm_Close? I'm trying to think when > abort would be needed, when Pm_Close seems like it can close up > itself? > Pm_Close is preferred for most situations. If you call Pm_Abort, messages that were previously written by the application but are still queued in the device driver (because they are waiting for their output timestamp or they are just in an output queue) should be dropped rather than delivered. On the other hand, Pm_Close delivers any pending output message before closing. > This is the current dealloc method, which gets called when an Output > object is closed. > > def __dealloc__(self): > if self.debug: print "Closing MIDI output stream and > destroying instance" > err = Pm_Abort(self.midi) > if err < 0: raise Exception, Pm_GetErrorText(err) > err = Pm_Close(self.midi) > if err < 0: raise Exception, Pm_GetErrorText(err) > > > cheers, > > > >> I'm not sure about the OSX stat message. I'll have to look. There's some >> relatively new code for preferences, and Stephen Pope mentioned >> something about preferences changing in OSX (if I understood his >> message). I've been holding out on installing 10.5, but I guess there >> are enough incompatibilities that I need to do that to maintain PortMidi. >> >> NIME conference is in less than one week (we're hosting it at Carnegie >> Mellon), but I'll try to devote some time to these issues soon. >> >> -Roger >> >> > > NIME looks like it'd be fun :) > _______________________________________________ > media_api mailing list > [email protected] > http://lists.create.ucsb.edu/mailman/listinfo/media_api > >
_______________________________________________ media_api mailing list [email protected] http://lists.create.ucsb.edu/mailman/listinfo/media_api
