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

213 Коммитов

Автор SHA1 Сообщение Дата
Dan Glastonbury 1e05277cf6 Fix Travis CI 32-bit builds. 2018-02-23 11:13:05 +10:00
Bryce Van Dyk deadde7d14 Handle stream preferences and loopback requests.
https://github.com/kinetiknz/cubeb/pull/387 introduced a preferences member on
the stream params struct. This updates the backend to handle that member. This
also makes the backend return the appropriate not supported error should the
new prefs be used to request a loopback stream, as the backend does not
currently support loopback streams.
2018-01-25 10:00:16 +10:00
Dan Glastonbury a04457b478 Fix clippy suggestions. 2018-01-23 13:51:32 +10:00
Alex Chronopoulos cb7141e3aa avoid deadlock when context subscribe fails 2018-01-17 13:10:58 +10:00
Anthony Ramine 71e1ecfad9 Update to bitflags 1.0
The 1.0 version uses associated constants instead of module constants.
2017-11-17 12:49:58 +10:00
est31 864332fde1 Fix a few unused mut warnings on newer Rust compilers 2017-10-30 10:55:41 +13:00
Alex Chronopoulos ee73d900c8 Fomat log message in rust code 2017-10-19 11:22:43 +10:00
Dan Glastonbury 2e22e53590 Improve handling when there are no pulse source/sink.
Port of kinetik/cubeb PR #360.
2017-09-26 15:30:09 +13:00
Ralph Giles 59fbba48d4 Merge pull request #19 from djg/fix-travis-ci
travis-ci: Add missing glib 2.0 dev dep.
2017-09-25 08:22:31 -07:00
Dan Glastonbury b2cc191213 travis-ci: Add missing glib 2.0 dev dep. 2017-09-25 15:30:44 +10:00
Dan Glastonbury 1ac0e46e88 Remove assertion when pulse has no sinks configured. 2017-09-25 15:18:50 +10:00
Matthew Gregan a386d91d7f backend: Add test for Intern. 2017-09-05 13:34:32 +10:00
Matthew Gregan 51926ee118 backend: Add (crude) string interning to provide stable devids. 2017-09-05 13:34:32 +10:00
Matthew Gregan af4c679d7f context: Treat DeviceType as a bitfield. 2017-09-05 13:34:32 +10:00
Matthew Gregan c7ecd920e8 Fix unused macro warning for cstr!. 2017-09-05 13:34:32 +10:00
Dan Glastonbury 04ba68d1be cubeb-pulse-rs: Updates required by changes to Stream::get_latency(). 2017-08-07 08:51:25 +12:00
Dan Glastonbury 907a7acdd2 pulse-rs: Stream::get_latency return StreamLatency enum.
Instead of returning tuple (u64, bool) where if bool is true
translates to a negative latency, the latency is returned via variant
enum where Positive and Negative makes the distinction explicit.
2017-08-07 08:51:25 +12:00
Dan Glastonbury 69927a170b stream: Fix !negative assert in latency(). 2017-08-06 14:40:40 +10:00
Chun-Min Chang 3b8cfba161 Add cubeb_stream_reset_default_device to synchronize the changes of Cubeb 2017-07-07 14:57:07 +10:00
Matthew Gregan a60ba46e8e Merge pull request #12 from djg/upstream-pa-sink-flag-fix
Upstream pa sink flag fix
2017-06-25 17:40:44 +12:00
Dan Glastonbury 2ae2f7ad9b Upstream gecko Bug 1375873. 2017-06-24 16:39:15 +10:00
Dan Glastonbury 9c52e897e2 Upstream gecko Bug 1376000. 2017-06-24 16:36:26 +10:00
Dan Glastonbury 64515819cd Make turning ptr T into Option<T> safer. 2017-06-19 17:41:30 +10:00
Dan Glastonbury e5d0cc6ffa cubeb-pulse-rs: Remove panic from pulse_format_to_cubeb_format
Return F32NE like cubeb_pulse.c
2017-06-16 11:23:29 +10:00
Dan Glastonbury 1ca5c3399b pulse-rs: Remove shift checks in flag validation.
Replace the use of shift with and and-with-mask to check only valid
flag bits are set.
2017-06-13 17:24:46 +10:00
Dan Glastonbury b49fea01f7 pulse-rs: Change PropList interface to take rust strings.
... and perform the allocation to convert to CString internally.
Remove cstr! macro.
2017-06-13 17:24:46 +10:00
Dan Glastonbury 26066f1116 pulse-rs: Replace implicit unref with explicit unref. 2017-06-13 17:24:46 +10:00
Dan Glastonbury f9ccf18348 pulse-rs: Replace nullable Stream with Option<Stream>
In discussion with :kinetik it was decided to use more idiomatic
Rust. Instead of being able to hold a Stream that might be invalid,
use Option<Stream> to signal when a valid Stream is held.
2017-06-13 17:24:46 +10:00
Dan Glastonbury 1e9dbf4fde cubeb-pulse-rs: Clean up trigger_user_callback parameters.
Turns out stream pointer to trigger_user_callback was only ever
self.output_stream.
2017-06-13 17:24:46 +10:00
Dan Glastonbury 41765fd346 pulse-rs: Replace nullable Context with Option<Context>
In discussion with :kinetik it was decided to use more idiomatic
Rust. Instead of being able to hold a Context that might be invalid,
use Option<Context> to signal when a valid Context is held.
2017-06-13 17:24:46 +10:00
Dan Glastonbury ff0808d407 Remove unused pulse::{Context, Stream}::clone() 2017-06-13 17:24:46 +10:00
Dan Glastonbury 32ab5961a3 pulse::Stream::drop_record -> pulse::Stream::drop 2017-06-13 17:24:46 +10:00
Dan Glastonbury 3612ce98b1 Macro-fy error checking and returning Operation boilerplate. 2017-06-13 17:24:46 +10:00
Dan Glastonbury 3fc92dc4ac Remove unused fn write_with_free. 2017-06-13 17:24:44 +10:00
Dan Glastonbury 85fd1bed37 Remove early return from position() so not to skip unlock. 2017-06-13 17:24:01 +10:00
Dan Glastonbury 8c36d7603c Add comment that is_good() fns must match PulseAudio macros. 2017-06-13 17:24:01 +10:00
Dan Glastonbury d9bea1315f Add note about wrapped functions in callbacks. 2017-06-13 17:23:59 +10:00
Dan Glastonbury 3ad41cdf41 Reinstate assert that get_latency result is non-negative. 2017-06-13 17:23:25 +10:00
Dan Glastonbury 0825c6ebed cubeb-pulse-rs: Remove rr comment. 2017-06-13 17:23:25 +10:00
Dan Glastonbury e6dca80a9b cubeb-rs: Make ThreadedMainloop::signal implicitly not wait. 2017-06-13 17:23:25 +10:00
Dan Glastonbury 344ce0fb39 pulse-rs: Change ThreadedMainloop::Start to return Result<()>. 2017-06-13 17:23:25 +10:00
Dan Glastonbury 03f31e2199 clippy fixes. 2017-06-13 17:23:25 +10:00
Dan Glastonbury 3a0ea205de pulse-rs: Changes to support extension traits. 2017-06-13 17:23:25 +10:00
Dan Glastonbury f513d321f2 cubeb-pulse-rs: Cleanup unsafe { } calls with extension traits. 2017-06-13 17:23:25 +10:00
Dan Glastonbury b04a43bf14 cubeb-pulse-rs: Convert pa_stream to pulse::Stream. 2017-06-13 17:23:23 +10:00
Dan Glastonbury 9af83dccc1 pulse-rs: Changes for pulse::Stream. 2017-06-13 17:18:40 +10:00
Dan Glastonbury 23cf9f6bfa pulse-ffi: Changes for pulse::Stream. 2017-06-12 18:11:21 +10:00
Dan Glastonbury 782f6a88ad cubeb-pulse-rs: Convert ffi::pa_context to pulse::Context. 2017-06-12 17:56:05 +10:00
Dan Glastonbury 486049cc3e pulse-rs: Changes needed for pulse::Context, pulse::Operation, etc. 2017-06-12 17:56:05 +10:00
Dan Glastonbury 29285d5166 pulse-ffi: Changes for pulse::Context, pulse::Operation, etc. 2017-06-12 17:56:05 +10:00