Sebastien, I'm not looking at any documentation or source code, but, from a programming perspective it makes sense that portmidi should initialize ok when there are no midi ports available. After initialization you would normally query portmidi regarding the number of midi ports availablebefore opening them. And, in your case, the number of devices will return 0.
As for support, I think portmidi has good support. And by that I mean, I believe it to be a stable library. Personally I have made fixes both on the Windows and Mac ports, and submitted them back to the project. There are some areas that I think need consideration, such as handling adding/removing midi port devices WHILE portmidi is running. Both Windows and Mac support hot-plugging midi devices, yet portmidi does not handle this yet. I hope this answers some questions... :) -cpr Quoting Sebastien Frippiat <[EMAIL PROTECTED]>: > Hello. > > I am currently searching for a cross-platform library for MIDI I/O. > After searching a bit on the internet, I found these two libraries : > PortMidi and midiio (http://midiio.sapp.org/). The problem is that both > of them don't seem to be updated frequently and support seems to lack. > > midiio doesn't give any documentation (links to improv are given but > currently don't work). Furthermore, I didn't manage to compile it using > MSYS (they said Visual C++ is supported but there isn't any > project/makefile for Windows), nor did I under Linux (RedHat with > 3.4.4). They say that it compiles using GCC 3.3 but don't say anything > more. Support seems to lack A LOT. > > So, I tried PortMidi. I managed to compile it using MSYS thanks to a > user-contributed makefile (though it shouldn't be too hard to write it > by myself). Then, I tried to compile it under Linux and, again, no problem. > > Bit now, I have a problem as I started to use it. It fails when I call > Pm_Initialize but it returns pmNoError. In fact, I have the following > message displayed in my console : ALSA lib > seq_hw.c:446:(snd_seq_hw_open) open /dev/snd/seq failed: No such file or > directory. I tried the sample/test programs and they behave similarly. I > know there is a problem with my computer (in fact I don't have any MIDI > ports :-) ) but it scares me a bit that PortMidi fails to return an > error on initialization. I don't want to have a program that think it is > running successfully but fails on every MIDI operation. > > Any ideas / suggestions ? > > Thanks, > Sebastien Frippiat > _______________________________________________ > media_api mailing list > [EMAIL PROTECTED] > http://www.create.ucsb.edu/mailman/listinfo/media_api > ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. _______________________________________________ media_api mailing list [EMAIL PROTECTED] http://www.create.ucsb.edu/mailman/listinfo/media_api
