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

15 Коммитов

Автор SHA1 Сообщение Дата
Jean-Yves Avenard 44298ecec5 Add .gitignore 2018-09-12 16:40:15 +02:00
Matthew Gregan 0aea9e0438 Replace autotools build system with CMake. 2016-10-12 17:06:10 +13:00
Matthew Gregan 9f3ea3dc0d Ignore libspeex.la. 2016-09-05 15:34:49 +12:00
Alex Chronopoulos 6b2c610ec8 Implement full-duplex for audiounit backend. 2016-03-08 13:09:03 +02:00
Paul Adenot 0af781aa95 Address review comments.
Build system.

Review comments: cubeb_resampler_speex_one_way ctor should take uint32_t.

Review comments: Use the default device for test_record.cpp

Review comments: use the correct path to include cubeb.h.

Review comments: use std::unique_ptr instead of auto_ptr, and remove auto_ptr implementation.

Review comments: Add test_duplex{,.exe} to .gitignore.

Review comments: Formatting in noop_resampler::fill.

Review comments: rename auto_array::resize to auto_array::reserve.

Review comments: Rename the method that push silence in an auto_array push_silence.

Review comments: Make test_duplex work with backend that use integers.

Review comments: indent in cubeb_resampler.cpp.

Review comments: call the target rate in the public interface of the resampler `target_rate`.

Review comments: Clarify the comment on cubeb_speex_resampler_one_way::drain.

Review comments: trailing space in cubeb_resampler_one_way::output assert.

Review comments: space between T and *.

Review comments: s/outut/output/.

Review comments: return before {.

Review comments: Use unique_ptr to create resampler objects.

We can't really use std::move here, as we appear to target platforms that don't
have it (Gecko on Android uses stlport that does not have std::move).

Review comments: check that the delay lign creation succeeded.

Review comments: Remove frame_count_at_rate.

Review comments: assert speex resampling suceeds.

Review comments: s/l atency/latency/.

Review comments: Remove comment.

Review comments: skip the tests that require an available audio input if none is available.
2016-02-17 14:53:51 +01:00
Paul Adenot 9908ee192f Add a smoke test for input-only streams.
This only checks we have non-silence audio for 500ms.
2016-02-06 06:29:26 +01:00
Paul Adenot c888e581c1 Add a resampler that can synchronously resample audio.
Depending on if its used for input or output audio, it can be used in two
different ways, so it has to expose its input buffer to minimise copy (when the
input of the resampler is output audio, directly written inside an audio
callback), and to be able to expose an internal buffer so that the output of
the resampling process can directly be passed to a callback.

When created, additional latency can be added to the pipeline so that multiple
resamplers of different filter length (=latency) can be synchronized.
2016-02-06 06:29:23 +01:00
Paul Adenot 1f13325871 Add an auto pointer and an auto array class
The auto pointer frees in the dtor.

The auto array has a number of feature that are useful to work with real-time
streaming audio: push back and pop front (because we're dealing with temporal
data), insert silence, auto resize, no compaction when it's resized down, bound
check, direct internal access to work nicely with other APIs.
2016-02-06 06:29:22 +01:00
Haakon Sporsheim 65fee6d192 Add enumerate_devices API
No backends support this yet.
2015-09-10 09:15:33 +02:00
Matthew Gregan ef29c53aac Add Travis-CI status to README 2014-09-26 17:04:27 +12:00
Matthew Gregan 18a74a8dfd Sync changes with gecko-dev version. 2014-04-04 14:57:30 +13:00
Matthew Gregan 52ef517dbb update gitignore with new test. 2013-09-20 17:30:47 +12:00
Matthew Gregan d2c45250a5 changes to support building with MinGW. fixes #10. 2012-12-01 12:18:30 +13:00
Matthew Gregan 08da964af3 add test_tone to gitignore. 2011-09-22 15:06:28 +12:00
Matthew Gregan 5045555f25 initial import (from 892ca582fe32577392a9843f14b8c5370df6ed78). 2011-07-08 16:23:47 +12:00