Commit graph portaudio/test
Author SHA1 Message Date
Phil Burk
8ef5021a9d
test: time out in patest_sine_time.c (#585)
On ALSA the StreamTime was not advancing so the while()
loop never exited. Now it will time out if it plays for much
longer than expected without the stream time changing.

Also measure timestamp latency from callback info.
2021-06-08 17:19:14 -07:00
Be
ee2c707495 CMake: build all tests 2021-04-28 17:13:32 -07:00
Phil Burk
df2be4e048
patest_unplug.c: change int32_t to int (#553)
To prevent compiler errors and to avoid controversy over
stdint.h vs inttypes.h.

Fixes #550
2021-04-17 12:56:16 -07:00
Phil Burk
67caa13f19
fix patest_converters.c argc argv order (#544)
They were reversed.
Also added void casts to prevent unused parameter warnings.
2021-04-12 06:29:03 -07:00
luz paz
52b1026c1f Fix user-facing and non-user-facing typos
Found via `codespell v2.1.dev0`  
`codespell -q 3 -L chello,gord,guid,numer,pres,uint,wirth`
2021-01-27 17:40:26 -08:00
Phil Burk
68e1c5685b
Fix patest1 printf (#467)
* Fix patest1.c printf

Got changed from fprintf() accidentally.

Fixes #466
2021-01-24 14:54:28 -08:00
petris
85f7602a3c Whitespace cleanup in test 2021-01-22 07:34:52 -08:00
Ross Bencina
f58b69dc36
Clean up whitespace in test/ in preparation for .editorconfig. (#417)
* Clean up whitespace in test/ in preparation for .editorconfig. Convert tabs to 4 spaces. Indent by 4 spaces. Strip trailing whitespace. Ensure EOL at EOF.
2021-01-21 23:45:10 +11:00
luz paz
e1c3e59ee8 Fix user-facing and non-user-facing typos
Found via `codespell v2.1.dev0`
2020-12-11 20:24:05 -05:00
Phil Burk
339e875f42 pa_mac_core: fix whitespace and missing semicolon
It compiled without the semicolon because it was followed by a VDBUG,
which was followed by a semicolon. The VDBUG was disabled so its
semicolon finished the line above.
2016-09-24 08:53:28 -07:00
Phil Burk
a38df79293 pa_mac_core_blocking: Fix timeout.
Change alignment of comment.
2016-09-21 15:46:30 -07:00
Phil Burk
0bc7cf9465 pa_mac_core_blocking: fix hang when running stream stopped
One thread was filling the buffer while
another thread was waiting for it to be empty.

Add thread safety warnings.

Fix ticket #252
2016-09-13 18:49:00 -07:00
Phil Burk
315309f60e Mac: test adjustable number of channels. 2016-05-21 17:25:18 -07:00
Phil Burk
ed463ba658 Normalize all the line endings 2016-05-18 22:13:20 -07:00
Phil Burk
e18ea33d22 pa_mac_core.c: Removed some comments. Cleaned up logic. 2016-05-16 22:30:28 -07:00
Phil Burk
09588cc5d6 pa_mac_core: stop stream instead of asserting
Bug: 158
2016-05-01 18:10:23 -07:00
philburk
13b2159821 patest_out_underflow: cleanup
Replace some tabs.
Print overflow under stress.
Prevent accidental overrange of phases array.
2016-04-10 18:12:03 +00:00
robiwan
4aa340a57e CMake: Added PA_WDMKS_NO_KSGUID_LIB to WDMKS and solution folders
WDMKS: Support for default device (see caveat for input devices though in ScanDeviceInfos)
       Added possibility to set channel mask
2014-04-09 14:27:21 +00:00
philburk
e4138f1c59 [tests] Add EOL to patest_mono.c
Build was failing on Mac because of the missing end-of-line.
2014-01-16 17:51:26 +00:00
philburk
44bdc45b2a Added counters for status flags in patest_wire.c. It then prints how many under and overflows occured.
This was added to help debug issue #171.
2012-06-22 21:58:10 +00:00
robiwan
c5874f23c4 Merged WaveRT branch (excluding stuff pertaining to ticket #169) 2012-02-14 09:32:57 +00:00
rossb
220b2989ec added dsound find best latency params test. resolves #186 2011-11-24 18:58:13 +00:00
rossb
e996fc8ff6 Implemented host-API specific mechanism for setting DirectSound buffer sizes in frames. resolves #129 2011-11-24 18:11:33 +00:00
philburk
d2054b201e Move paqa_devs and paqa_errs to qa folder. Clean up tests. 2011-09-08 05:32:07 +00:00
philburk
57dd0b608f moved example programs from test folder to examples folder 2011-09-08 03:21:55 +00:00
philburk
4b7c5a1241 Experiment with moving example code into its own folder.
Note that this revision needs to have autoreconf run.
I tried to do that on Mac but it failed. So I will try on Linux.
2011-09-07 23:54:04 +00:00
philburk
9cdd56f5b4 Implement the Float32 to UInt8 converters.
The loopback test now passes cleanly for the first time on my PreSonus FireStudio.
Added tests for clip and dither flag combinations to loopback.
2011-09-01 22:08:32 +00:00
rossb
0750039754 added large primes to patest_suggested_vs_streaminfo_latency.py 2011-08-25 15:56:25 +00:00
rossb
59b9cf7180 fixed some warnings and minor bugs in patest_suggested_vs_streaminfo_latency.c 2011-08-25 14:40:00 +00:00
rossb
b3eeb36d05 added #include and deleted 2 unused variables from a test 2011-08-25 08:51:46 +00:00
rossb
17882c465f Updated patest_suggested_vs_streaminfo_latency test. Python script now creates plots for a number of different buffer sizes. Supports testing at different sample rates. 2011-08-11 12:18:02 +00:00
rossb
d15c703f8f updated patest_suggested_vs_streaminfo_latency to generate pdf files 2011-08-04 14:29:58 +00:00
rossb
35073f0c65 updated patest_suggested_vs_streaminfo_latency to support running multiple test iterations from the python script 2011-08-04 13:56:52 +00:00
rossb
b526d0fd56 added patest_suggested_vs_streaminfo_latency test and python graphing script 2011-08-04 13:15:59 +00:00
rossb
a6b18bb64c mme latency test: minor cleanups. randomised tone pitch 2011-07-28 04:40:42 +00:00
rossb
eb0d429b7a mme test only list output devices 2011-07-26 04:24:49 +00:00
rossb
73c241d7ba fixed switch statement in test that would report Win7 when the platform was Vista 2011-07-24 05:28:47 +00:00
rossb
3165f0f473 updated wmme manual latency test 2011-07-21 14:34:15 +00:00
philburk
e3387a98a7 Improve calculation of default latencies on Mac CoreAudio.
Allow very low buffer sizes if suggestedLatency is low.
Set actual latencies in StreamInfo.
2011-07-21 08:29:26 +00:00
rossb
6f7f5f0325 initial implementation of patest_wmme_find_best_latency_params.c. just a draft. needs work 2011-07-14 09:02:08 +00:00
philburk
c036f1e0d6 Added patest_mono and patest_two_rates to Makefile.in
Verified both and updated README.txt
2011-03-13 00:49:28 +00:00
philburk
5db3f8fb7c Convert patest_two_rates.c to V19.
Make paloopback over/underflow report easier to understand.
2011-03-07 00:52:47 +00:00
rossb
801ae219cd fixed build breakage of patest_wmme_ac3.c on windows 2011-03-04 02:28:55 +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
rob_bielik
59f8c8975c Ticket #132 2011-02-17 15:56:04 +00:00
rossb
cf124140d6 tweaked buffer settings in wmme low level parameters example 2010-08-14 06:22:26 +00:00
dmitrykos
f2badb7725 wasapi:
- added functionality to enumerate jacks and their description
 - added example which demonstrates jacks enumeration technique
Thanks Reid Bishop for providing the idea for this extended functionality and patch with implementation.
2010-07-23 10:04:03 +00:00