diff options
author | Dan Glastonbury <[email protected]> | 2017-03-28 13:02:09 +1000 |
---|---|---|
committer | Matthew Gregan <[email protected]> | 2017-03-28 19:33:58 +1300 |
commit | fd0d72b70b89cd4ec022737aaa3a702062594fd1 (patch) | |
tree | 5abadca817632353169db061ff91d471de41d27c /src/cubeb.c | |
parent | 91caeafda775f54b92c27536db74dcd656fbf627 (diff) | |
download | cubeb-fd0d72b70b89cd4ec022737aaa3a702062594fd1.tar.gz cubeb-fd0d72b70b89cd4ec022737aaa3a702062594fd1.zip |
Add extern pulse_rust_init.
Used to select the rust version of pulse audio backend.
Enabled by defining USE_PULSE_RUST.
Diffstat (limited to 'src/cubeb.c')
-rw-r--r-- | src/cubeb.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/cubeb.c b/src/cubeb.c index d29e518..23aadaa 100644 --- a/src/cubeb.c +++ b/src/cubeb.c @@ -25,6 +25,9 @@ struct cubeb_stream { #if defined(USE_PULSE) int pulse_init(cubeb ** context, char const * context_name); #endif +#if defined(USE_PULSE_RUST) +int pulse_rust_init(cubeb ** contet, char const * context_name); +#endif #if defined(USE_JACK) int jack_init (cubeb ** context, char const * context_name); #endif @@ -112,6 +115,10 @@ cubeb_init(cubeb ** context, char const * context_name, char const * backend_nam #if defined(USE_PULSE) init_oneshot = pulse_init; #endif + } else if (!strcmp(backend_name, "pulse-rust")) { +#if defined(USE_PULSE_RUST) + init_oneshot = pulse_rust_init; +#endif } else if (!strcmp(backend_name, "jack")) { #if defined(USE_JACK) init_oneshot = jack_init; |