Commit graph

18 commits

Author SHA1 Message Date
Andrew Kelley fbc7318268 remove the concept of period duration from the API
also more progress on WASAPI
2015-08-13 22:54:15 -07:00
Andrew Kelley e82c3e89da WASAPI: get period duration for raw devices 2015-08-13 10:18:46 -07:00
Andrew Kelley ba65bdb131 WASAPI: shared mode devices support any sample rate 2015-08-12 18:57:34 -07:00
Andrew Kelley 75185d17d7 WASAPI: get the list of supported formats from devices 2015-08-12 17:11:03 -07:00
Andrew Kelley 97abe08f0e WASAPI: get the number of available audio devices 2015-08-10 15:22:08 -07:00
Andrew Kelley 21bf405859 WASAPI skeleton 2015-08-08 15:22:50 -07:00
Andrew Kelley 7238d29666 sample rate is exposed as a list of min/max pairs 2015-08-08 14:44:31 -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 8da5ae0798 PulseAudio: opening out stream populates buffer_duration 2015-08-04 13:09:45 -07:00
Andrew Kelley a378cac92d JACK: fix not setting outstream buffer_duration 2015-08-04 12:25:15 -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 a774a72958 CoreAudio: get the full list of available sample rates 2015-08-03 17:06:38 -07:00
Andrew Kelley c347629c8d CoreAudio: obtain device buffer duration 2015-08-03 15:14:41 -07:00
Andrew Kelley f77663399f CoreAudio: obtain most device information 2015-08-01 22:10:43 -07:00
Andrew Kelley 7371ce5146 Fix kqueue-based cond and signal implementation 2015-08-01 13:01:49 -07:00
Andrew Kelley 7bab3f0189 small docs update 2015-07-31 18:53:39 -07:00
Andrew Kelley 4c5742eb29 CoreAudio skeleton 2015-07-31 18:52:51 -07:00
Andrew Kelley 860370d859 rename examples, install them, and correct #include path 2015-07-30 14:16:22 -07:00
Renamed from src/soundio.h (Browse further)