aboutsummaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2024-01-31Format new changesPaul Adenot
2024-01-31audiounit: Resample to match output device hardware sample rate in uncommon ↵Steveice10
cases. In some cases, weird sample rates can cause AudioUnit output units to misbehave. Instead, use resampling for non-native rates to make sure this does not happen.
2024-01-15Add an API for muting the input side of a streamAndreas Pehrson
2024-01-15Add APIs for input processingAndreas Pehrson
2024-01-08Checking buffer, buffer_in, buffer_out pointers for non NULL valuesNikolay Borodin
2023-12-12auto_array: protect from various calls when length_ is 0Andreas Pehrson
cubeb-coreaudio-rs has hit a case when running its tests on MacOS 12 where it fails the `assert(destination && source);` in `PodCopy` because it tried to push 0 samples to an auto_array of length 0, as the internal auto_array buffer had not been allocated yet.
2023-11-21Relax a single test_sanity.cpp assertion when using OpenSLPaul Adenot
2023-11-21Allow not being able to get the minimum latency in test_callback_ret.cpp and ↵Paul Adenot
test_logging.cpp, as it's not essential for the test
2023-11-21Add static keyword to fix build of tests in unified buildsPaul Adenot
2023-11-21Fix latency reporting on OpenSLPaul Adenot
2023-11-10Remove test_deadlock.cpp file, hasn't been compiled since March 2018Paul Adenot
Removed in 789eaa.
2023-11-10Include gtest.h in test/common.hPaul Adenot
2023-11-10Include the header directly to use AudioBuffer on macOS in cubeb_ring_array.hPaul Adenot
2023-11-10Non-functional change: Directly include string.h in test/common.hPaul Adenot
2023-11-10Consistently use double in the mixerPaul Adenot
This fixes a warning: INT32_MAX cannot be represented as a float.
2023-11-10Non functional change: Fix missing documentation in cubeb.hPaul Adenot
2023-11-10Non-functional change: Check tests when checking formatPaul Adenot
2023-11-10Non-functional change: clang-format testsPaul Adenot
2023-11-10Non functional change: fix unified compilation issue -- make callbacks staticPaul Adenot
2023-11-10clang-formatPaul Adenot
2023-11-10Reset logging thread ID when starting a new stream to allow debugging ↵Paul Adenot
comfortably
2023-11-10AAudio: set the callback size to the latency passed in, increase internal ↵Paul Adenot
buffer size to be 3 times the burst size
2023-11-10Add and modify a few logging statementsPaul Adenot
2023-11-10AAudio: when finding that an input device has been disconnected, ↵Paul Adenot
reinitialize the duplex stream
2023-11-10AAudio: remove unused headerPaul Adenot
2023-11-10Reset thread id when a new stream is created, in OpenSL backendPaul Adenot
This is not 100% correct, but prevents crashing on an assert in the very common case of opening multiple streams back to back with logging enabled.
2023-11-10Fix output buffer conversion: handle differing channel count between input ↵Paul Adenot
and output
2023-11-10CI: update actions/checkout to v4aeiouaeiouaeiouaeiouaeiouaeiou
2023-11-08Fix mistake break audio input on OpenSL ESPaul Adenot
2023-11-07In test_duplex loop back all input framesAndreas Pehrson
The break removed here makes sense for input-only, where breaking has no side effects. In a loopback duplex case like here it makes the callback exit early, before having written all frames. This can be caused by clipping on the input side (as observed on MacOS) and creates a distortion that sounds terrible.
2023-10-26AAudio: ensure input buffer is large enough when reading input dataPaul Adenot
2023-10-24Return an error if failing to open a recorder and it's not a sample-rate not ↵Paul Adenot
supported issue
2023-09-26Actually use the return value in initialize_with_format callback call.Paul Adenot
2023-09-15Use uint64_t for the samplerate in opensl_stream_get_position to avoid overflowPaul Adenot
2023-08-25 Generate compile_commands.json while buildingPaul Adenot
2023-08-25Handle input sidePaul Adenot
2023-08-25Refactor conversion and format setting logicPaul Adenot
2023-08-25OpenSLES and related file: clang-formatPaul Adenot
2023-08-25OpenSLES: clang-formatPaul Adenot
2023-08-25OpenSLES: Fix most clang-tidy warningsPaul Adenot
2023-08-25OpenSLES: when floats IO aren't supported, perform a conversionPaul Adenot
2023-08-25OpenSLES: use cubeb logging facilitiesPaul Adenot
2023-08-25OpenSLES: compile as C++Paul Adenot
2023-08-03AAudio: Don't unlock a mutex owned by a lock_guardPaul Adenot
2023-07-31Don't attempt to use an unavailable cubeb_stream in aaudio_stream_init.Paul Adenot
2023-07-26Update googletest to current masterPaul Adenot
This is what is recommended by upstream.
2023-07-26Run clang-formatPaul Adenot
2023-07-26Compile in C++17, like GeckoPaul Adenot
2023-07-26AAudio: Fix log level when stopping a streamPaul Adenot
2023-07-26AAudio: When a device is disconnected, reinitialize the stream with the same ↵Paul Adenot
parameters