[Media_api] Brief PortMidi Question
Roger Dannenberg
rbd at cs.cmu.edu
Fri Mar 14 14:21:59 PDT 2008
Yes, there is an error if NEWBUFFER is not defined. The makefiles and
projects all define NEWBUFFER.
By defining NEWBUFFER, you incorporate a new multi-processor-safe and
memory write-reorder-safe buffer. (Without NEWBUFFER, you are supposed
to get the old buffer code, which is not safe in the presence of
out-of-order writes, but I made a mistake. This has actually turned out
to be a "feature" since it forced everyone to run with the less-tested
NEWBUFFER code -- it's been in there awhile, and I haven't seen any
complaints, so I feel pretty good about it being there. The announced
plan is to take out the old buffer code and remove the NEWBUFFER switch
in the next general cleanup.)
-Roger
More information about the media_api
mailing list