Commit graph

333 commits

Author SHA1 Message Date
philburk
03c9a5d2d5 Fix random code insertion caused by buggy editor on Linux.
Report actual buffer sizes.
2011-03-02 22:12:23 +00:00
philburk
0c00ae8845 Add latency control in loopback to fix Linux latency problems. 2011-03-02 21:03:45 +00:00
philburk
af4e71a184 Raise pop threshold for loopback test. 2011-03-02 17:49:46 +00:00
philburk
c8dcb76f19 Applied patches for Debian Linux for ticket 166. 2011-03-02 17:03:23 +00:00
philburk
7db43bb536 Set default latency in an attempt to reduce full duplex glitching. 2011-03-02 02:42:57 +00:00
philburk
0ebc551e6e Add test for sample format conversion. 2011-03-02 01:53:02 +00:00
philburk
c152ef3966 Check for clipping even when loopback devices specified. 2011-03-01 23:02:52 +00:00
philburk
9471fc8dae Add check for clipping and noise in loopback test. 2011-03-01 22:48:50 +00:00
philburk
33a9013437 Remove unused variable in loopback. 2011-03-01 09:36:31 +00:00
philburk
284a16cf4f Add loopback target to Makefile.
Fixes to loopback test for ALSA.
2011-03-01 09:22:48 +00:00
philburk
2abba447e6 tweak changeme.txt to test SVN on Ubuntu 2011-03-01 08:34:46 +00:00
philburk
7453ad9343 ANother attempt at fixing configure make. 2011-03-01 02:32:04 +00:00
philburk
d757ad0b55 Try to fix oddly broken Makefile.in 2011-03-01 02:25:32 +00:00
philburk
99c23578bc ANother C99 fix for loopback. 2011-03-01 02:12:46 +00:00
philburk
981c2eac70 Fix C99 error with modern for loops. 2011-03-01 02:02:46 +00:00
philburk
8a905a2a19 Added paloopback test to the automated build. 2011-03-01 01:54:20 +00:00
philburk
1ca032a561 Ass semicolon to fix "label at end of compound statement" error
caused by pthread_cleanup_pop(1) macro.
2011-03-01 00:49:52 +00:00
philburk
7aad01a1d3 Added patest_write_sine_nonint to Makefile.
Check for paNonInterleaved on Mac and return paSampleFormatNotSupported.
Fix pa_minlat.c. Linux was complaining about not checking fgets return value.
2011-02-28 23:56:48 +00:00
philburk
7d8d647cfa Add a test for non-interleaved blocking writes.
This is to address ticket 83.
2011-02-28 22:27:39 +00:00
philburk
6fb75866b3 Speed up loopback test by testing each sample rate then each buffer size, not full matrix. 2011-02-27 01:31:56 +00:00
philburk
7ffd3f5374 Cleanup tests. Lots of small tweaks.
Delete the debug_ tests because they are V18 and are not needed.
We can just hack a V19 test if we need to debug.
2011-02-27 00:06:07 +00:00
dmitrykos
3fb0ef9e30 wasapi: fixed the bug when on stream stop/start/stop/start sequence callback could be called with number of samples smaller than requested by user in Pa_OpenStream 2011-02-21 22:41:06 +00:00
dmitrykos
b906a9d336 fixed build by reverting 1604 revision where 'pa_ringbuffer.o' dependency was added to Makefile.in, modified configure.in for WASAPI build and added explicit 'pa_ringbuffer.o' dependency there instead 2011-02-21 08:02:21 +00:00
rob_bielik
59f8c8975c Ticket #132 2011-02-17 15:56:04 +00:00
rossb
bc81ee0ed2 doc tweak 2011-02-12 13:33:18 +00:00
dmitrykos
e1ba3369da fixed compilation when Makefile is used by adding missing pa_ringbuffer.o object file 2011-02-12 12:45:27 +00:00
rossb
54aaddf9e3 moved src/common/pa_skeleton.c to src/hostapi/skeleton/pa_hostapi_skeleton.c. updated all build files accordingly. 2011-02-12 10:22:00 +00:00
rossb
af36f2762b added braces to clarify precedence in latency calculation expression 2011-02-12 09:26:30 +00:00
rossb
e794f3bd02 renamed some latency variables to make it clear they are in frames not seconds 2011-02-12 09:21:52 +00:00
rossb
a5eb2767c7 fixed stream info inputLatency and outputLatency calculations. PaUtil_GetBufferProcessorOutputLatency returns latency in <frames>, code assumed it was in seconds. 2011-02-12 09:20:26 +00:00
rossb
ba156ee92f fixed stream info inputLatency and outputLatency calculations. PaUtil_GetBufferProcessorOutputLatency returns latency in <frames>, code assumed it was in seconds. 2011-02-12 09:19:37 +00:00
rossb
ad9c8ad083 fixed stream info inputLatency and outputLatency calculations. PaUtil_GetBufferProcessorOutputLatency returns latency in <frames>, code assumed it was in seconds. 2011-02-12 09:18:28 +00:00
dmitrykos
9c4c92fef6 alsa:
- implemented dynamic ALSA loading, you shall define PA_ALSA_DYNAMIC when compiling PortAudio library, by default PortAudio will use compile time linkage;
- added PA_ALSA_PATHNAME define to redefine ALSA library path and filename to some other name and location, has effect only together with PA_ALSA_DYNAMIC;
- added extension function (PaAlsa_SetLibraryPathName) which allows to set ALSA library path and filename during application run-time overwriting default set by PA_ALSA_PATHNAME during compilation;
- added API compatibility with Android OS (although ALSA may not be available on your device and usually requires 'root' access rights to open an audio device), some missing ALSA functions are replaced with stubs (needs more input from interested parties), to compile on Android you need to add ALSA headers (get it from Android GIT source-code tree) to compiler's searchable path.
2011-02-11 00:15:51 +00:00
dmitrykos
4318a7556b alsa:
- fixed callback thread to exit normally if error condition was satisfied during stream processing (OnExit wasn't called), it was possible cause of crash if error happened inside the thread
- modified processing thread to timeout during poll() within around 2 seconds instead of 64 milliseconds, this will help to fix problems on systems with low processing power and possible CPU overloading, like portable ARM devices
- timeout of poll() will not cause stream to stop but will cause Alsa stream restart, poll timeout will now set 'xrun' event to 1
2011-02-09 08:53:50 +00:00
rossb
5027e95e70 corrected typos as per jf_menards's patch in ticket #58 2011-02-05 14:33:29 +00:00
rossb
7060043727 added #include portaudio.h to pa_mac_core.h so it is consistent with all other host-api specific headers. closes ticket #7 2011-02-04 10:41:58 +00:00
dmitrykos
f588f3cd5d wasapi: - releasing Input/Output buffer if error occurred inside the processing routine 2011-02-03 15:37:12 +00:00
dmitrykos
2b0faea85c wasapi:
- fixed blocking interface, Input and Output
 - improved Exclusive Input device latency tunning
 - applied path provided by Jean-François Charron (D-BOX Technologies Inc.) which improves handling of COM objects in multi-threaded environment and initialization stage which could under certain conditions return paNoError event when initialization failed
2011-02-03 15:15:44 +00:00
rossb
7d0edd2714 removed reference to todo list from main doxygen page 2011-02-02 19:31:27 +00:00
rossb
b4931e7298 removed/cleaned up doxygen @todo items. moved to TRAC 2011-02-02 18:58:17 +00:00
rossb
931a003f52 cleanup: changed if() to switch() 2011-02-02 18:22:43 +00:00
rossb
76c3e0f31c clarified documentation for PaTime and Pa_GetStreamTime 2011-02-02 17:29:26 +00:00
rossb
edf4166f07 removed old doxygen @todo comments 2011-02-01 13:11:22 +00:00
rossb
aa80b24004 removed obsolete doxygen @todo comments 2011-02-01 13:09:10 +00:00
rossb
a04c0e6e6f referenced trac ticket #113 in doxy todo item 2011-02-01 13:03:45 +00:00
rossb
6d04ded9c3 referenced trac tickets #35 and #112 in pa_converters.c todo items 2011-02-01 12:58:26 +00:00
rossb
e286d2c10a removed doxygen TODO items from pa_asio implementation. migrated them to new trac tasks: #103, #104, #105, #106, #107, #108, #109, #110, #111 2011-02-01 12:52:14 +00:00
rossb
13a5f4a980 corrected doc comment 2011-02-01 11:18:16 +00:00
rossb
e9bf04f563 simplify doc tweak 2011-02-01 11:17:36 +00:00
dmitrykos
272adbefc7 wasapi: allow mono input/output streams be created when Blocking interface is used. Thanks to Chris (c319chris@aol.com) for providing the patch. 2011-01-03 18:33:32 +00:00