Commit graph

58 commits

Author SHA1 Message Date
rossb
49ef51660b updated Pa_CountDevices to not counting WAVE_MAPPER when there were no real devices 2002-04-17 05:06:14 +00:00
stephane
83abb2d3ff Removes another compiler warning 2002-04-13 08:42:50 +00:00
philburk
ec5a837138 Add Mac includes for <Devices.h> and <Timer.h> 2002-04-12 23:33:52 +00:00
philburk
48e580a679 Important patch for the ASIO SDK. 2002-04-12 23:32:47 +00:00
philburk
365a8e2444 Use getrusage() instead of gettimeofday() for CPU Load calculation. 2002-04-12 18:07:20 +00:00
rossb
c406a816c8 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
2002-04-10 18:18:36 +00:00
stephane
bd907d6139 Correct error code management in PaHost_Term, removes various compiler warning 2002-04-09 08:36:09 +00:00
philburk
1f3da172ac Fixed Pa_GetCPULoad() 2002-03-30 01:47:38 +00:00
philburk
5dbbd8ad34 Change doubles to floats to improve type consistency. 2002-03-29 21:23:53 +00:00
philburk
e66425d00c Use Interpolating sine lookup to eliminate differences in math lib performance
between hosts.
2002-03-28 18:15:43 +00:00
philburk
1f71752e8b put ( void ) in prototype for Pa_CountDevices( void ) 2002-03-26 18:04:22 +00:00
philburk
e4861f4664 detect Win XP versus NT, 9x
fix DBUG typo
removed redundant problematic init of LARGE_INTEGER CurrentCount
2002-03-21 18:35:05 +00:00
philburk
782c78c1a3 Play a different sine frequency on all channels.
Good for testing multi-channel output.
2002-03-21 18:26:46 +00:00
philburk
d3021f70a8 ATtempt to set sample rate separately for input and output. 2002-03-21 08:36:34 +00:00
philburk
e763432f49 Minor tweaks while debugging pa_mac_core.c 2002-03-21 00:58:45 +00:00
philburk
f3b86fe9d5 Initialize default device IDs. 2002-03-21 00:54:06 +00:00
philburk
3e603eba3e New tests written when debugging pa_mac_core 2002-03-21 00:44:35 +00:00
philburk
b47db27181 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.
2002-03-21 00:39:42 +00:00
philburk
cf24fdd1c0 Added support for conversion nroutines in pa_convert.c.
SHifted Dither value right by one to account for high pass filter.
2002-03-21 00:32:50 +00:00
philburk
fc4ad21da3 Fixed typo. 2002-03-21 00:31:38 +00:00
philburk
be977e2abb Contains sample format conversion routines, eg. paInt32 to paInt16. 2002-03-21 00:30:03 +00:00
philburk
ac7b7bb96a steadily play a different sine wave on each channel 2002-03-19 01:30:28 +00:00
philburk
35714fdc83 use smaller latency 2002-03-19 01:28:14 +00:00
philburk
f4158d9008 If watchdog detects canary getting starved, then just lower audio thread
priority instead of killing it. If audio completely hung then still kill it.
2002-02-25 17:20:39 +00:00
philburk
fe732b4d77 Added more printfs and sped up test. 2002-02-25 17:19:24 +00:00
philburk
8d8702a9fe Add more tests. 2002-02-22 22:18:30 +00:00
philburk
446407f2d6 Only use Get_AFMT_S16_NE is not defined. 2002-02-22 22:18:14 +00:00
philburk
1dbcc33442 Change from 22050 to 44100 Hz
Process audio in a block for better efficiency.
2002-02-22 22:06:23 +00:00
philburk
85f1b75729 Do all memory allocations through a tracker so we can debug memory leaks. 2002-02-22 22:05:01 +00:00
philburk
1914d1c217 Fix typo in comment: s/bug/big/ 2002-02-22 22:01:35 +00:00
philburk
024eb0bf88 Added bug note about unsupported sample rates. 2002-02-22 21:59:11 +00:00
philburk
83bb63cf86 Fix messages, init toggle variable. 2002-02-22 21:46:18 +00:00
philburk
98aa447859 Cleaned up some comments. 2002-02-22 21:45:45 +00:00
philburk
ca0feff1b0 Add watchdog test that causes user thread starvation by overusing CPU. 2002-02-22 21:45:10 +00:00
philburk
ac04f6d610 Add watch dog that simulates hung audio thread. 2002-02-22 21:44:19 +00:00
philburk
390f193042 Added WatchDog proc if audio running at high priority.
Check error return from read() and write().
Check CPU endianness instead of assuming Little Endian.
2002-02-22 21:40:48 +00:00
stephane
ecf3adbcdb Explicit cast needed for compilation with Code Warrior 7 2002-02-22 10:28:39 +00:00
philburk
ce52e6e902 test tweak 2002-02-22 00:50:50 +00:00
phil
891814e2c1 from Bill Eldridge 2002-02-20 17:57:44 +00:00
phil
c2a838e392 Used to prepare files for checkin on Windows 2002-02-19 20:04:47 +00:00
phil
821ccde910 Added README and LICENSE so we can make nightly builds from CVS 2002-02-19 20:04:26 +00:00
stephane
f51bc7d2c4 New Pa_ASIO_loadDriver that calls CoInitialize on each thread on Windows 2002-02-19 13:45:51 +00:00
dmazzoni
7e73ac614d 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.
2002-02-19 08:24:21 +00:00
dmazzoni
5f6b6644dd Added O_NONBLOCK to all open() calls, so that PortAudio
does not hang if the device is in use by another program.
2002-02-18 06:07:07 +00:00
phil
2c79fcd98b notes on CoreAudio implementation 2002-02-07 18:15:27 +00:00
phil
03fca8ce5d 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).
2002-02-07 18:04:00 +00:00
phil
c3f0744add add fflush(stdout) so we can see progress 2002-02-07 17:57:44 +00:00
phil
ae00b6ebde try lower latency, better print messages 2002-02-07 17:54:56 +00:00
stephane
1b96fa74a3 Cleanup, test of multiple-stream opening 2002-02-01 10:18:16 +00:00
stephane
5813acec61 test from stephane 2002-01-31 19:38:16 +00:00