Граф коммитов

710 Коммитов

Автор SHA1 Сообщение Дата
Paul Adenot c99c306f25 Update a test to have the latency in frames. 2016-07-19 11:53:06 +02:00
Paul Adenot 22db111f2b Clamp the latency to [256, platform default] on OSX.
OSX allows to go lower, but a number of headsets and other hw don't work too
well with super low latency.
2016-07-19 11:50:55 +02:00
Paul Adenot c07e4a59bb Fix a C -> C++ issue. 2016-07-13 18:11:39 +02:00
Paul Adenot d476c87ba1 Make cubeb compile on mac after merging the latency frame branch. 2016-07-13 18:11:25 +02:00
Paul Adenot 0c06535d8b Remove wrong assert in cubeb_wasapi.cpp
It is legal to close a stream multiple times.
2016-07-13 11:34:43 +02:00
Paul Adenot 240d20604b Merge pull request #123 from padenot/latency-frames
Latency numbers should be in frames
2016-07-12 19:45:25 +02:00
Paul Adenot 9bb6846d03 Update kai backend. 2016-07-12 19:43:35 +02:00
Paul Adenot 098b9f21bf Update sndio backend. 2016-07-12 19:43:35 +02:00
Paul Adenot ae44ce98f8 update opensl backend 2016-07-12 19:43:35 +02:00
Paul Adenot 050f849d84 Update AudioTrack backend. 2016-07-12 19:43:35 +02:00
Paul Adenot 9e60eb6bfd Update wasapi backend. 2016-07-12 19:43:35 +02:00
Paul Adenot b8f755dc5b Update winmm backend. 2016-07-12 19:43:35 +02:00
Paul Adenot b0b5c4939e Rename latency_ms to latency_frames in test_latency.cpp. 2016-07-12 19:43:35 +02:00
Paul Adenot e292d8cfb1 Update AudioUnit backend. 2016-07-12 19:43:35 +02:00
Paul Adenot e562eaa439 Update jack backend. 2016-07-12 19:42:59 +02:00
Paul Adenot 645f58ed00 Update pulse backend. 2016-07-12 19:42:59 +02:00
Paul Adenot 43bcb26999 Update tests for the new latency interface. 2016-07-12 19:42:58 +02:00
Paul Adenot dd2a89d90d Don't fail the device enumeration test on backend where device enumeration is not supported. 2016-07-12 19:42:58 +02:00
Paul Adenot 46584e72bd Update alsa backend. 2016-07-12 19:42:58 +02:00
Paul Adenot 01f43ff023 Adjust the latency validation in cubeb.c to reflect the interface change. 2016-07-12 19:42:58 +02:00
Paul Adenot 025b515bfe cubeb.h - Use frames for the different latency in external interfaces. 2016-07-12 19:42:58 +02:00
Paul Adenot 9d28cd3133 Disable logging in `cubeb_audiounit.cpp` 2016-07-08 15:13:02 +02:00
Alex Chronopoulos 35cecb908b Remove buffer size alignment 2016-07-07 15:35:03 +02:00
Alex Chronopoulos 9e90915eb1 Stop sending zero frames on resampler 2016-07-07 15:35:03 +02:00
Alex Chronopoulos cf0e4924eb Set in/out buffer size according to latency 2016-07-07 15:35:02 +02:00
Paul Adenot ee6783e281 Merge pull request #121 from achronop/audiounit_from_c_to_cpp
Audiounit from c to cpp
2016-07-06 10:44:26 +02:00
Alex Chronopoulos c4dc6e023f Apply review comments 2016-07-04 19:18:51 +03:00
Alex Chronopoulos dacc3b90dd Change ring_array test to cpp 2016-07-04 19:17:49 +03:00
Alex Chronopoulos 0ddcc6c0b2 Source files changes 2016-07-04 15:54:59 +03:00
Alex Chronopoulos fd8a322aab Changes to build system 2016-07-04 15:52:53 +03:00
Paul Adenot b8aebef33a Merge pull request #118 from kinetiknz/docs
Update cubeb documentation for duplex streams.
2016-07-01 15:13:17 +02:00
Paul Adenot 2e64671631 Merge pull request #119 from kinetiknz/assert-wasapi
Remove an assert in the WASAPI backend
2016-07-01 15:13:10 +02:00
Paul Adenot dcc90f40c8 Address comments. 2016-07-01 15:00:06 +02:00
Paul Adenot 4b4e6e3db1 Update cubeb documentation for duplex streams. 2016-07-01 14:29:10 +02:00
Paul Adenot b774174072 Remove an assert in cubeb_wasapi.cpp, that was preventing a legal pattern. 2016-07-01 14:27:49 +02:00
Matthew Gregan de4940260e alsa: Work around audio playback issues with ALSA/dmix configurations.
In some situations (e.g. playing out 44.1kHz audio with a 48kHz dmix
configuration and letting ALSA/dmix resample), we receive wakeups from
poll() that are not aligned with complete refill periods and thus aren't
signalled via POLLOUT.

Rather than relying on POLLOUT, query the available write space and
refill what we can on each wakeup.  This will cause libcubeb's
data_callback to be called somewhat more frequently in these situations,
but it's not clear we have a better option (or how much that will
matter).
2016-07-01 12:21:10 +12:00
Paul Adenot b6202a7521 Merge pull request #117 from achronop/audiounit_set_shutdown
Set shutdown flag on stop
2016-06-24 14:59:31 +02:00
Alex Chronopoulos da2148bbe3 Set shutdown flag on stop 2016-06-24 14:47:24 +03:00
Paul Adenot 18645fa9e1 Merge pull request #116 from achronop/resampler-frames-calculation
resampler: change calculation for in/out frames needed
2016-06-23 10:26:33 +02:00
Paul Adenot 9a1d6ccd2a Fix wrong assert in close_wasapi_stream.cpp.
It's possible to have a thread and a shuwdown event here because we could be reconfiguring a device.

This fixes BMO bug 1281402.
2016-06-22 14:53:46 +02:00
Alex Chronopoulos 2d8eb6c05a resampler: change calculation for in/out frames needed 2016-06-21 15:41:36 +03:00
Alex Chronopoulos e0acbf2e5e pulse: Fix realloc of devinfo array. 2016-06-17 16:10:00 +01:00
Matthew Gregan 97b2929691 audiounit: Avoid callocing zero sized devid_array. 2016-06-17 15:41:15 +01:00
Matthew Gregan bf65eba69e audiounit: Avoid using uninitialized range when AudioObjectGetPropertyDataSize fails. 2016-06-17 15:39:42 +01:00
Matthew Gregan dd0d5aae85 audiounit: Return an error when audiounit_get_devices returns no devices. 2016-06-17 15:38:42 +01:00
Matthew Gregan 073c9f0111 Merge pull request #115 from kinetiknz/bump-stack-size
Bump the stack size for WASAPI rendering threads.
2016-06-15 15:07:02 +01:00
Paul Adenot 3f750db99d Bump the stack size for WASAPI rendering threads.
In Gecko, webrtc.org code we call from the callback is using big arrays
allocated on the stack, and we're running out of stack space. Bumping it by a
factor of two should be enough.
2016-06-15 14:39:04 +01:00
Paul Adenot 99a5054785 Merge pull request #113 from achronop/test-fixes-for-opensl
Test fixes for opensl
2016-06-09 13:26:33 +02:00
Paul Adenot 1b7f7503d4 Merge pull request #112 from achronop/resampler-fixes
Resampler fixes
2016-06-09 13:26:25 +02:00
Alex Chronopoulos b8b4f3f8df Change stream type from voice to music 2016-06-09 13:31:11 +03:00