Commit graph

52 commits

Author SHA1 Message Date
Andrew Kelley a05e0e283e WASAPI: fix device cleanup segfault 2015-08-21 13:08:11 -07:00
Andrew Kelley 2eb8ce24cf sine example: add parameter to specify device 2015-08-20 17:38:01 -07:00
Andrew Kelley 2514e19195 build: fix sine example compiling with MSVC 2015-08-20 00:44:56 -07:00
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 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 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 f77663399f CoreAudio: obtain most device information 2015-08-01 22:10:43 -07:00
Andrew Kelley 860370d859 rename examples, install them, and correct #include path 2015-07-30 14:16:22 -07:00
Andrew Kelley 4ba1fd91a1 rename device name and description to id and name 2015-07-30 10:26:36 -07:00
Andrew Kelley 5503072fc8 ALSA: recover from underflow gracefully 2015-07-29 22:39:27 -07:00
Andrew Kelley 2900616e9b flesh out buffer semantics 2015-07-29 21:50:12 -07:00
Andrew Kelley 44569708a0 Delete the concept of prebuffering 2015-07-29 20:55:28 -07:00
Andrew Kelley 0dee34a84e PulseAudio: fix microphone example 2015-07-29 13:02:17 -07:00
Andrew Kelley 31678c7777 examples: add --jack param 2015-07-29 01:13:57 -07:00
Andrew Kelley 754343bba6 microphone example works with JACK 2015-07-28 18:47:28 -07:00
Andrew Kelley 6df84096f3 sine example works with JACK 2015-07-28 11:28:07 -07:00
Andrew Kelley 3dd9e513bc add JACK backend skeleton 2015-07-24 18:43:14 -07:00
Andrew Kelley ab8a2c2ffe microphone example: recover from underflow 2015-07-24 13:33:41 -07:00
Andrew Kelley 3d3f9f91a2 microphone example: no more glitches 2015-07-24 13:26:46 -07:00
Andrew Kelley efa7b7cbc0 ALSA input stream: add missing clean up 2015-07-23 21:07:51 -07:00
Andrew Kelley 34039b4858 microphone example working with ALSA 2015-07-23 20:55:36 -07:00
Andrew Kelley 511fcafc3b dummy: implement prebuffering 2015-07-23 16:49:44 -07:00
Andrew Kelley 69764e1afa microphone example working with dummy backend 2015-07-23 15:04:41 -07:00
Andrew Kelley e7dc300cc6 microphone example working with PulseAudio 2015-07-22 15:43:45 -07:00
Andrew Kelley db06391646 ALSA: support non mmap device access 2015-07-22 00:04:17 -07:00
Andrew Kelley 1eeeff5a24 PulseAudio works again 2015-07-20 22:55:30 -07:00
Andrew Kelley 96c8332246 dummy backend: fix playback 2015-07-20 00:35:46 -07:00
Andrew Kelley 24f466a0a0 list_devices takes arguments to override backend 2015-07-20 00:00:43 -07:00
Andrew Kelley 0bc918e2c8 better list_devices behavior 2015-07-16 23:37:17 -07:00
Andrew Kelley 7045cb3988 ALSA sine example is making noise 2015-07-15 20:57:00 -07:00
Andrew Kelley 1e4d87e608 ALSA: open output device with parameters 2015-07-13 21:30:37 -07:00
Andrew Kelley 59026ccba7 examples are smarter about device parameters 2015-07-13 09:59:42 -07:00
Andrew Kelley 5b3fd175f8 stream API update; expose multiple channel layouts 2015-07-13 09:17:20 -07:00
Andrew Kelley 6c2226a6d7 list_devices example: more detailed output 2015-07-10 03:00:29 -07:00
Andrew Kelley 7d45b15036 rename SoundIoOutputDevice to SoundIoOutStream
and SoundIoInputDevice to SoundIoInStream
2015-07-10 02:42:29 -07:00
Andrew Kelley 3b8d896c8e ALSA backend determines what formats a device supports 2015-07-10 02:21:47 -07:00
Andrew Kelley 8887a528ef sample formats: take into account ALSA 2015-07-10 00:46:03 -07:00
Andrew Kelley c760bc4df7 default sample rate is not as important as I thought 2015-07-08 00:42:17 -07:00
Andrew Kelley c39c1ab9f4 ALSA: expose pcm devices and introduce is_raw 2015-07-07 23:29:09 -07:00
Andrew Kelley fe61322b23 beginning of ALSA support - list_devices works 2015-07-07 02:55:32 -07:00
Andrew Kelley d6fcef468b microphone example: detect incompatible in/out devices 2015-07-06 17:16:03 -07:00
Andrew Kelley a69ff6025c add and export a ring buffer implementation 2015-07-06 01:05:22 -07:00
Andrew Kelley 664c50752a sine example working with dummy 2015-07-04 03:55:00 -07:00
Andrew Kelley 60b731ab4f os: make sure tv_nsec is less than 1,000,000,000 2015-07-04 03:37:50 -07:00
Andrew Kelley a35a2b7e0a add a couple unit tests, fix a couple bugs 2015-07-04 02:57:06 -07:00
Andrew Kelley 70e956abdf refactor connect/disconnect API 2015-07-01 02:53:53 -07:00
Andrew Kelley 6a5db549f5 list_devices example works with dummy backend 2015-07-01 02:37:51 -07:00
Andrew Kelley 18a37da848 implement getting devices 2015-07-01 01:29:35 -07:00
Andrew Kelley e409400f04 extracted code from Genesis 2015-07-01 01:02:44 -07:00