]> Repos - portaudio/log
portaudio
24 years agoChecked in by Phil for Bill Eldridge
philburk [Tue, 30 Apr 2002 16:35:50 +0000 (16:35 +0000)]
Checked in by Phil for Bill Eldridge
Bills's mod: Made the libinstall and tests compile a bit cleaner

24 years agoPa_ASIO_QueryDeviceInfo bug correction, memory allocation checking, better error...
stephane [Tue, 30 Apr 2002 12:33:04 +0000 (12:33 +0000)]
Pa_ASIO_QueryDeviceInfo bug correction, memory allocation checking, better error handling

24 years agoFixed return value in Pa_StreamTime
philburk [Wed, 24 Apr 2002 16:19:50 +0000 (16:19 +0000)]
Fixed return value in Pa_StreamTime

24 years agoUse new method to calculate CPU load similar to other ports. Based on num frames...
philburk [Wed, 24 Apr 2002 04:58:09 +0000 (04:58 +0000)]
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%.

24 years agoDetect Win XP and Win 2K properly when determining latency.
philburk [Fri, 19 Apr 2002 18:31:54 +0000 (18:31 +0000)]
Detect Win XP and Win 2K properly when determining latency.

24 years agoChange sine generation method so that sine waves don't line up with PA buffers.
philburk [Fri, 19 Apr 2002 18:31:13 +0000 (18:31 +0000)]
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..

24 years agoFixed bug where I was calling the wrong function to calculate
philburk [Thu, 18 Apr 2002 19:40:11 +0000 (19:40 +0000)]
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.

24 years agoadded implementation of PaHost_IsInitialized()
rossb [Wed, 17 Apr 2002 06:29:07 +0000 (06:29 +0000)]
added implementation of PaHost_IsInitialized()
migrated PaHost_GetStreamRepresentation() from pa_win_wmme.c

24 years agoadded protoypes for PaHost_IsInitialized() and PaHost_GetStreamRepresentation()
rossb [Wed, 17 Apr 2002 06:28:18 +0000 (06:28 +0000)]
added protoypes for PaHost_IsInitialized() and PaHost_GetStreamRepresentation()

24 years agochanged Pa_QueryDevices to Pa_InitializeNumDevices and added separate function Pa_All...
rossb [Wed, 17 Apr 2002 06:27:05 +0000 (06:27 +0000)]
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

24 years agoupdated Pa_CountDevices to not counting WAVE_MAPPER when there were no real devices
rossb [Wed, 17 Apr 2002 05:06:14 +0000 (05:06 +0000)]
updated Pa_CountDevices to not counting WAVE_MAPPER when there were no real devices

24 years agoRemoves another compiler warning
stephane [Sat, 13 Apr 2002 08:42:50 +0000 (08:42 +0000)]
Removes another compiler warning

24 years agoAdd Mac includes for <Devices.h> and <Timer.h>
philburk [Fri, 12 Apr 2002 23:33:52 +0000 (23:33 +0000)]
Add Mac includes for <Devices.h> and <Timer.h>

24 years agoImportant patch for the ASIO SDK.
philburk [Fri, 12 Apr 2002 23:32:47 +0000 (23:32 +0000)]
Important patch for the ASIO SDK.

24 years agoUse getrusage() instead of gettimeofday() for CPU Load calculation.
philburk [Fri, 12 Apr 2002 18:07:20 +0000 (18:07 +0000)]
Use getrusage() instead of gettimeofday() for CPU Load calculation.

24 years agorenamed PaHostSoundControl to PaWMMEStreamData
rossb [Wed, 10 Apr 2002 18:18:36 +0000 (18:18 +0000)]
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

24 years agoCorrect error code management in PaHost_Term, removes various compiler warning
stephane [Tue, 9 Apr 2002 08:36:09 +0000 (08:36 +0000)]
Correct error code management in PaHost_Term, removes various compiler warning

24 years agoFixed Pa_GetCPULoad()
philburk [Sat, 30 Mar 2002 01:47:38 +0000 (01:47 +0000)]
Fixed Pa_GetCPULoad()

24 years agoChange doubles to floats to improve type consistency.
philburk [Fri, 29 Mar 2002 21:23:53 +0000 (21:23 +0000)]
Change doubles to floats to improve type consistency.

24 years agoUse Interpolating sine lookup to eliminate differences in math lib performance
philburk [Thu, 28 Mar 2002 18:15:43 +0000 (18:15 +0000)]
Use Interpolating sine lookup to eliminate differences in math lib performance
between hosts.

24 years agoput ( void ) in prototype for Pa_CountDevices( void )
philburk [Tue, 26 Mar 2002 18:04:22 +0000 (18:04 +0000)]
put ( void ) in prototype for Pa_CountDevices( void )

24 years agodetect Win XP versus NT, 9x
philburk [Thu, 21 Mar 2002 18:35:05 +0000 (18:35 +0000)]
detect Win XP versus NT, 9x
fix DBUG typo
removed redundant problematic init of LARGE_INTEGER CurrentCount

24 years agoPlay a different sine frequency on all channels.
philburk [Thu, 21 Mar 2002 18:26:46 +0000 (18:26 +0000)]
Play a different sine frequency on all channels.
Good for testing multi-channel output.

24 years agoATtempt to set sample rate separately for input and output.
philburk [Thu, 21 Mar 2002 08:36:34 +0000 (08:36 +0000)]
ATtempt to set sample rate separately for input and output.

24 years agoMinor tweaks while debugging pa_mac_core.c
philburk [Thu, 21 Mar 2002 00:58:45 +0000 (00:58 +0000)]
Minor tweaks while debugging pa_mac_core.c

24 years agoInitialize default device IDs.
philburk [Thu, 21 Mar 2002 00:54:06 +0000 (00:54 +0000)]
Initialize default device IDs.

24 years agoNew tests written when debugging pa_mac_core
philburk [Thu, 21 Mar 2002 00:44:35 +0000 (00:44 +0000)]
New tests written when debugging pa_mac_core

24 years agoAdded paInt16, paInt8, format using new "pa_common/pa_convert.c" file.
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.

24 years agoAdded support for conversion nroutines in pa_convert.c.
philburk [Thu, 21 Mar 2002 00:32:50 +0000 (00:32 +0000)]
Added support for conversion nroutines in pa_convert.c.
SHifted Dither value right by one to account for high pass filter.

24 years agoFixed typo.
philburk [Thu, 21 Mar 2002 00:31:38 +0000 (00:31 +0000)]
Fixed typo.

24 years agoContains sample format conversion routines, eg. paInt32 to paInt16.
philburk [Thu, 21 Mar 2002 00:30:03 +0000 (00:30 +0000)]
Contains sample format conversion routines, eg. paInt32 to paInt16.

24 years agosteadily play a different sine wave on each channel
philburk [Tue, 19 Mar 2002 01:30:28 +0000 (01:30 +0000)]
steadily play a different sine wave on each channel

24 years agouse smaller latency
philburk [Tue, 19 Mar 2002 01:28:14 +0000 (01:28 +0000)]
use smaller latency

24 years agoIf watchdog detects canary getting starved, then just lower audio thread
philburk [Mon, 25 Feb 2002 17:20:39 +0000 (17:20 +0000)]
If watchdog detects canary getting starved, then just lower audio thread
priority instead of killing it. If audio completely hung then still kill it.

24 years agoAdded more printfs and sped up test.
philburk [Mon, 25 Feb 2002 17:19:24 +0000 (17:19 +0000)]
Added more printfs and sped up test.

24 years agoAdd more tests.
philburk [Fri, 22 Feb 2002 22:18:30 +0000 (22:18 +0000)]
Add more tests.

24 years agoOnly use Get_AFMT_S16_NE is not defined.
philburk [Fri, 22 Feb 2002 22:18:14 +0000 (22:18 +0000)]
Only use Get_AFMT_S16_NE is not defined.

24 years agoChange from 22050 to 44100 Hz
philburk [Fri, 22 Feb 2002 22:06:23 +0000 (22:06 +0000)]
Change from 22050 to 44100 Hz
Process audio in a block for better efficiency.

24 years agoDo all memory allocations through a tracker so we can debug memory leaks.
philburk [Fri, 22 Feb 2002 22:05:01 +0000 (22:05 +0000)]
Do all memory allocations through a tracker so we can debug memory leaks.

24 years agoFix typo in comment: s/bug/big/
philburk [Fri, 22 Feb 2002 22:01:35 +0000 (22:01 +0000)]
Fix typo in comment: s/bug/big/

24 years agoAdded bug note about unsupported sample rates.
philburk [Fri, 22 Feb 2002 21:59:11 +0000 (21:59 +0000)]
Added bug note about unsupported sample rates.

24 years agoFix messages, init toggle variable.
philburk [Fri, 22 Feb 2002 21:46:18 +0000 (21:46 +0000)]
Fix messages, init toggle variable.

24 years agoCleaned up some comments.
philburk [Fri, 22 Feb 2002 21:45:45 +0000 (21:45 +0000)]
Cleaned up some comments.

24 years agoAdd watchdog test that causes user thread starvation by overusing CPU.
philburk [Fri, 22 Feb 2002 21:45:10 +0000 (21:45 +0000)]
Add watchdog test that causes user thread starvation by overusing CPU.

24 years agoAdd watch dog that simulates hung audio thread.
philburk [Fri, 22 Feb 2002 21:44:19 +0000 (21:44 +0000)]
Add watch dog that simulates hung audio thread.

24 years agoAdded WatchDog proc if audio running at high priority.
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.

24 years agoExplicit cast needed for compilation with Code Warrior 7
stephane [Fri, 22 Feb 2002 10:28:39 +0000 (10:28 +0000)]
Explicit cast needed for compilation with Code Warrior 7

24 years agotest tweak
philburk [Fri, 22 Feb 2002 00:50:50 +0000 (00:50 +0000)]
test tweak

24 years agofrom Bill Eldridge
phil [Wed, 20 Feb 2002 17:57:44 +0000 (17:57 +0000)]
from Bill Eldridge

24 years agoUsed to prepare files for checkin on Windows
phil [Tue, 19 Feb 2002 20:04:47 +0000 (20:04 +0000)]
Used to prepare files for checkin on Windows

24 years agoAdded README and LICENSE so we can make nightly builds from CVS
phil [Tue, 19 Feb 2002 20:04:26 +0000 (20:04 +0000)]
Added README and LICENSE so we can make nightly builds from CVS

24 years agoNew Pa_ASIO_loadDriver that calls CoInitialize on each thread on Windows
stephane [Tue, 19 Feb 2002 13:45:51 +0000 (13:45 +0000)]
New Pa_ASIO_loadDriver that calls CoInitialize on each thread on Windows

24 years agoFixed the nonblocking open - now it tries to open each device in
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.

24 years agoAdded O_NONBLOCK to all open() calls, so that PortAudio
dmazzoni [Mon, 18 Feb 2002 06:07:07 +0000 (06:07 +0000)]
Added O_NONBLOCK to all open() calls, so that PortAudio
does not hang if the device is in use by another program.

24 years agonotes on CoreAudio implementation
phil [Thu, 7 Feb 2002 18:15:27 +0000 (18:15 +0000)]
notes on CoreAudio implementation

24 years agoMods made with Darren Gibbs.
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).

24 years agoadd fflush(stdout) so we can see progress
phil [Thu, 7 Feb 2002 17:57:44 +0000 (17:57 +0000)]
add fflush(stdout) so we can see progress

24 years agotry lower latency, better print messages
phil [Thu, 7 Feb 2002 17:54:56 +0000 (17:54 +0000)]
try lower latency, better print messages

24 years agoCleanup, test of multiple-stream opening
stephane [Fri, 1 Feb 2002 10:18:16 +0000 (10:18 +0000)]
Cleanup, test of multiple-stream opening

24 years agotest from stephane
stephane [Thu, 31 Jan 2002 19:38:16 +0000 (19:38 +0000)]
test from stephane

24 years agotweak
philburk [Thu, 31 Jan 2002 19:16:05 +0000 (19:16 +0000)]
tweak

24 years agotest
stephane [Thu, 31 Jan 2002 19:08:14 +0000 (19:08 +0000)]
test

24 years agotweak test
stephane [Thu, 31 Jan 2002 19:02:56 +0000 (19:02 +0000)]
tweak test

24 years agoAdded file for testing CVS
phil [Thu, 31 Jan 2002 04:25:55 +0000 (04:25 +0000)]
Added file for testing CVS

24 years agomore comment cleanups, removed incorrect synthetic device 0 comment
rossb [Thu, 24 Jan 2002 22:42:56 +0000 (22:42 +0000)]
more comment cleanups, removed incorrect synthetic device 0 comment

24 years agofixed formatting, typos and grammar in comments
rossb [Wed, 23 Jan 2002 20:01:11 +0000 (20:01 +0000)]
fixed formatting, typos and grammar in comments
reordered PaTimestamp to put all device info functionality together

24 years agoRemoved extra Id
phil [Tue, 22 Jan 2002 00:55:40 +0000 (00:55 +0000)]
Removed extra Id

24 years agoInitial revision
phil [Tue, 22 Jan 2002 00:51:49 +0000 (00:51 +0000)]
Initial revision