Commit graph

272 commits

Author SHA1 Message Date
James Dyson 4cf76cb228 Fixed error message from no input found 2015-11-05 18:23:27 +11:00
Andrew Kelley 2633b1bd60 PulseAudio: pass the latency test 2015-11-01 12:39:21 -07:00
Andrew Kelley 8e30053962 JACK: delete broken pause implementation
Previously, calling soundio_outstream_pause or soundio_instream_pause
during the write_callback or read_callback would cause a deadlock. Now,
attempting to pause always results in SoundIoErrorBackendIncompatible.

Closes #39
2015-10-28 16:01:08 -07:00
Andrew Kelley a37b8cf847 update tests to catch pausing during write_callback 2015-10-28 15:42:52 -07:00
Andrew Kelley c09a64c64f README: re-order feature list 2015-10-27 15:39:01 -07:00
Andrew Kelley 581c5a487a Release 1.0.3 2015-10-20 19:57:51 -07:00
Andrew Kelley 2f14aa569e ALSA: use period size to calculate buffer size
determining the buffer size before the period size sometimes results
in EINVAL.

closes #33
2015-10-13 00:47:18 -07:00
Andrew Kelley b202f6746b underflow test: add --device and --raw params 2015-10-13 00:20:56 -07:00
Andrew Kelley db0e3d136c fix double clean up corruption when opening stream fails
affects ALSA, CoreAudio, JACK, WASAPI, and Dummy.
2015-10-08 17:10:21 -07:00
Andrew Kelley 05a4280e52 Merge pull request #32 from aoeu/master
tests: include limits lib to fix build on debian
2015-10-07 22:46:50 -07:00
Travis 7cff66fb83 tests: include limits lib to fix build on debian 2015-10-07 23:05:48 -04:00
Andrew Kelley 277bb3106b dummy: fix deadlock when pause called from write_callback 2015-10-06 19:36:57 -07:00
Andrew Kelley a3c4f85489 ALSA: fix deadlock under some circumstances
If the write_callback came upon an error during the prepare
phase, and never wrote any frames to the hardware buffer,
and another thread tried to soundio_outstream_destroy, this
would cause a deadlock.

This is now fixed.
2015-10-06 18:50:56 -07:00
Andrew Kelley 9c1a6d4930 README: put earliest linux version instead of alsa version 2015-10-06 14:01:07 -07:00
Andrew Kelley 75f454a607 README: add supported operating systems and versions 2015-10-06 13:39:57 -07:00
Andrew Kelley 8bba0de3c1 add --latency and --sample-rate to sine example 2015-09-28 18:12:17 -07:00
Andrew Kelley 0a0715eb72 architecture independent header files
Do endian detection in the header file instead of cmake.
2015-09-24 09:26:17 -07:00
Andrew Kelley 6a75dda407 Release 1.0.2 2015-09-24 08:11:49 -07:00
Andrew Kelley be6e654098 fix and add test for soundio_device_nearest_sample_rate 2015-09-18 22:08:36 -07:00
Andrew Kelley a9e455aec8 docs: cleanup 2015-09-18 21:20:53 -07:00
Andrew Kelley 65e1d8bdd1 docs: fix typo 2015-09-18 21:17:16 -07:00
Andrew Kelley 71e31b88fe os: fix crash when creating non high priority thread fails 2015-09-17 15:04:34 -07:00
Andrew Kelley dbed33abd2 os: remove superfluous condition on init
remove superfluous #include math.h
2015-09-17 13:55:47 -07:00
Andrew Kelley f52080a1fd fix mirrored memory not working on linux
add mirrored memory unit test
2015-09-14 14:56:13 -07:00
Andrew Kelley 7e95d9f9c0 PulseAudio: fix soundio_outstream_pause triggering assertion
when called from within write_callback. closes #24
2015-09-14 04:15:02 -07:00
Andrew Kelley 23104161a8 docs: fix incorrect docs for soundio_instream_pause 2015-09-14 04:02:58 -07:00
Andrew Kelley 4ce3429bdd remove projects using libsoundio
the website has this information
2015-09-13 21:48:50 -07:00
Andrew Kelley 673e28aa77 build: fix GNUInstallDirs not working
The project() line needed to go above include(GNUInstallDirs).
2015-09-12 01:34:14 -07:00
Andrew Kelley 685084c64a add changelog 2015-09-11 20:51:06 -07:00
Andrew Kelley f161449415 Release 1.0.1 2015-09-11 20:50:29 -07:00
Andrew Kelley 2a68f63079 ALSA: pause gives error when state is invalid 2015-09-11 20:33:40 -07:00
Andrew Kelley 4a0b3579d4 soundio_disconnect: allow NULL parameter 2015-09-11 19:10:09 -07:00
Andrew Kelley 0887b1ee3d soundio_disconnect: null out more function pointers 2015-09-11 18:25:06 -07:00
Andrew Kelley c3e3af2061 dummy backend: fix sometimes calling write_callback with 0 avail 2015-09-11 10:24:30 -07:00
Andrew Kelley c62c2e4661 macos: avoid allocation when getting time 2015-09-11 10:20:46 -07:00
Andrew Kelley b6c0c84294 macos: fix not cleaning up condition variables 2015-09-10 17:14:16 -07:00
Andrew Kelley f0356597e2 ALSA: remove stray print statement 2015-09-08 15:05:44 -07:00
Andrew Kelley 0047eb2776 sio_microphone: make latency a command line arg
See #22
2015-09-08 10:37:16 -07:00
Andrew Kelley 369ea0f608 os: fix some variables not static 2015-09-08 10:03:23 -07:00
Andrew Kelley 749654b922 PulseAudio: better clear buffer implementation
seek instead of pa_stream_flush
2015-09-07 16:58:46 -07:00
Andrew Kelley e2e483a4d5 no longer depend on or link against libm 2015-09-05 14:56:36 -07:00
Andrew Kelley 8406dcd0ad sio_record: explain about shutting down
closes #12
2015-09-05 11:30:18 -07:00
Andrew Kelley 0598f91c5a build: remove superfluous include_directories statement 2015-09-05 11:28:16 -07:00
Andrew Kelley d233757b63 Merge pull request #20 from hasufell/master
Make building examples and tests optional
2015-09-05 11:27:26 -07:00
hasufell a3dd080fda
Make building examples and tests optional 2015-09-05 14:07:22 +02:00
Andrew Kelley 9d3c08fa3f sio_record: no fwrite in read_callback
See #12
2015-09-04 18:01:57 -07:00
Andrew Kelley b5056f142e docs: read_callback and write_callback must be real time safe 2015-09-04 11:33:59 -07:00
Andrew Kelley f8cb816139 ALSA: remove duplicate assert
Thanks to Devin Anderson for pointing it out.
2015-09-04 11:11:14 -07:00
Andrew Kelley 902edfaf44 Merge pull request #16 from diogocp/patch-1
Make building static libs optional
2015-09-04 09:26:04 -07:00
Diogo Pereira 0a20aec2a1 Make building static libs optional 2015-09-04 17:21:54 +01:00