Mac OS X may not work correctly with large block sizes
Gnaural reported trouble with porting to mac OS X (initially, there was lots of noise, described as sounding like an edian-ness issue). Here is a report on the workaround which indicates a bug in Mac OS X:
-----
Turned out that merely changing frames per buffer in Pa_OpenStream from 4096 to 1024 got rid of the problem! A little more experimentation showed that any value up through 3072 worked, anything over exhibited the bad behavior.
BTW, paFramesPerBufferUnspecified also worked on the Mac, but I've had problems on Linux with that for some reason (which is why I had an arbitrary fixed value to begin with; changing it to 1024 now).
-------
My initial impression is that this should probably be addressed with ticket 38 because both will require additional buffering.
-----
Turned out that merely changing frames per buffer in Pa_OpenStream from 4096 to 1024 got rid of the problem! A little more experimentation showed that any value up through 3072 worked, anything over exhibited the bad behavior.
BTW, paFramesPerBufferUnspecified also worked on the Mac, but I've had problems on Linux with that for some reason (which is why I had an arbitrary fixed value to begin with; changing it to 1024 now).
-------
My initial impression is that this should probably be addressed with ticket 38 because both will require additional buffering.
Leave a comment