rossbencina [Wed, 12 Jun 2002 03:02:13 +0000 (03:02 +0000)]
altered isActive and isStopped accessor documentation to say return value of 1 for true instead of non-zero, since other non-zeros may be returned on error
rossb [Wed, 22 May 2002 00:16:42 +0000 (00:16 +0000)]
updated Rename Pa_GetCPULoad(), PaDeviceID etc. for Consistency with new namings
revised multihost api and other proposals to use new naming conventions
replaced paDefaultHostApi with Pa_GetDefaultHostApi()
philburk [Sat, 4 May 2002 20:38:42 +0000 (20:38 +0000)]
Checked in by Phil for Pieter
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?).
Use new method to calculate CPU load similar to other ports. Based on num frames calculated.
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%.
Change sine generation method so that sine waves don't line up with PA buffers.
This was causing it to appear that audio was OK even when buffers were dropped..
Fixed bug where I was calling the wrong function to calculate
the minimum number of user buffers. This resulted in a too conservative,
ie. too high, latency.
changed Pa_QueryDevices to Pa_InitializeNumDevices and added separate function Pa_AllocateDevicePtrs
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
renamed PaHostSoundControl to PaWMMEStreamData
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
philburk [Thu, 21 Mar 2002 00:39:42 +0000 (00:39 +0000)]
Added paInt16, paInt8, format using new "pa_common/pa_convert.c" file.
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.
philburk [Fri, 22 Feb 2002 21:40:48 +0000 (21:40 +0000)]
Added WatchDog proc if audio running at high priority.
Check error return from read() and write().
Check CPU endianness instead of assuming Little Endian.
dmazzoni [Tue, 19 Feb 2002 08:24:21 +0000 (08:24 +0000)]
Fixed the nonblocking open - now it tries to open each device in
nonblocking mode, and if that succeeds, closes it and opens it
again in blocking mode - and added a new Pa_StreamTime
implementation that uses SNDCTL_DSP_GET[I/O]PTR.
phil [Thu, 7 Feb 2002 18:04:00 +0000 (18:04 +0000)]
Mods made with Darren Gibbs.
fixed isInput so GetProperty works better,
fixed device queries for numChannels and sampleRates,
one CoreAudio device now maps to separate input and output PaDevices,
audio input works if using same CoreAudio device (some HW devices make separate CoreAudio devices).