Many fixes and changes: POLLIN for input, not POLLOUT.
Open and close ALports in the audio-process-thread.
Proper semaphore communication now.
Hopefully stable enough now (for beta release?).
Fixed Pa_StreamTime(). Now estimates how many frames have played based on MicroSecond timer.
Added PA_MAX_USAGE_ALLOWED to prevent Mac from hanging when CPU load approaches 100%.
changed Pa_AllocateDevicePtrs to never allocate 0 bytes
removed Pa_MabeQueryDevices
added explicit initialization of sDevicePtrs[n] to NULL
changed default input and output devices to paNoDevice when no device was available
changed Pa_GetDefaultInput/OutputDeviceID to have the same behavior as when there was no environment variable when the environment variables value was out of range
added #if around declaration of sNumAllocations
removed unused locals bytesEmpty, bytesFilled, buffersEmpty from Pa_TimeSlice()
renamed all result variables of type MMRESULT to mmresult
removed pahsc_ from stream data fields
renamed pahsc to wmmeStreamData
renamed past to stream or internalStream (ad-hoc at this stage)
changed trace text in PaHost_BackgroundManager() to display correct function name
replaced / 1000.0 with * 0.001 in 2 places
consistentified pre-function comment formatting
added one line break after variable declarations in function bodies
added check for valid past_DeviceData to Pa_StreamTime()
added PaHost_GetStreamRepresentation, PaHost_GetWMMEStreamData and updated error checking code to use them
factored Pa_InitializeCpuUsageScalar into separate module
factored PaHost_AllocateWMMEStreamData/PaHost_FreeWMMEStreamData
Return error if opened in mono mode cuz not supported.
Add support for Pa_GetCPULoad();
Fixed timestamp in callback and Pa_StreamTime() (Thanks n++k for the advice!)
Check for invalid sample rates and return an error.
Check for getenv("PA_MIN_LATEWNCY_MSEC") to set latency externally.
Better error checking for invalid channel counts and invalid devices.