Andrew Kelley
3b49292897
use hidden visibility by default and explicitly export
...
Also don't expose os functions.
And do the dllexport/dllimport thing.
2015-08-20 14:48:19 -07:00
Andrew Kelley
c381526205
callbacks supply min and max frame count parameters
...
This changes the semantics of the callbacks so that instead of
a single `requested_frame_count` or `available_frame_count`,
the callbacks get a minimum frame count and maximum frame count.
The callback must write at least the minimum or get an underflow.
The minimum will be 0 on ALSA, PulseAudio, and Dummy, and will
equal the maximum on CoreAudio and JACK.
This ensures optimal behavior regardless of buffer size.
2015-08-04 21:57:46 -07:00
Andrew Kelley
f87961275d
write and read functions no longer allow setting frame count
...
CoreAudio and JACK both have this limitation
2015-08-04 00:56:03 -07:00
Andrew Kelley
7371ce5146
Fix kqueue-based cond and signal implementation
2015-08-01 13:01:49 -07:00
Andrew Kelley
860370d859
rename examples, install them, and correct #include path
2015-07-30 14:16:22 -07:00
Andrew Kelley
2a70bdb745
add a test for underflow handling and expose os API
2015-07-30 12:07:58 -07:00
Andrew Kelley
12db5fd970
remove all calls to soundio_panic
...
Return codes are the way errors are communicated, not
crashing the entire program.
2015-07-30 00:46:13 -07:00
Andrew Kelley
70decb39f5
SoundIoOutStream, SoundIoInStream: void * -> union
...
For better cache locality and lower mlock requirements.
2015-07-27 17:06:12 -07:00
Andrew Kelley
db1195877a
SoundIo, SoundIoDevice: unions instead of void *
...
for better cache locality
2015-07-27 16:37:45 -07:00
Andrew Kelley
5b3fd175f8
stream API update; expose multiple channel layouts
2015-07-13 09:17:20 -07:00
Andrew Kelley
fe61322b23
beginning of ALSA support - list_devices works
2015-07-07 02:55:32 -07:00