diff options
author | Chris Robinson <[email protected]> | 2012-03-01 03:24:49 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2012-03-01 03:29:28 -0800 |
commit | 105faa193551b0272f62aab3e67f305d3ceeb3e5 (patch) | |
tree | 3b403604f43ff1d49549e0edb6802b71e9cb084d /Alc/backends/pulseaudio.c | |
parent | b299b90964ae4f85ca929fea6b46a67e70c65322 (diff) |
Only support PA_API_VERSION 12
Diffstat (limited to 'Alc/backends/pulseaudio.c')
-rw-r--r-- | Alc/backends/pulseaudio.c | 33 |
1 files changed, 16 insertions, 17 deletions
diff --git a/Alc/backends/pulseaudio.c b/Alc/backends/pulseaudio.c index b504e891..1acdff71 100644 --- a/Alc/backends/pulseaudio.c +++ b/Alc/backends/pulseaudio.c @@ -25,23 +25,7 @@ #include <pulse/pulseaudio.h> -#if PA_API_VERSION == 11 -#define PA_STREAM_ADJUST_LATENCY 0x2000U -#define PA_STREAM_EARLY_REQUESTS 0x4000U -static __inline int PA_STREAM_IS_GOOD(pa_stream_state_t x) -{ - return (x == PA_STREAM_CREATING || x == PA_STREAM_READY); -} -static __inline int PA_CONTEXT_IS_GOOD(pa_context_state_t x) -{ - return (x == PA_CONTEXT_CONNECTING || x == PA_CONTEXT_AUTHORIZING || - x == PA_CONTEXT_SETTING_NAME || x == PA_CONTEXT_READY); -} -#define PA_STREAM_IS_GOOD PA_STREAM_IS_GOOD -#define PA_CONTEXT_IS_GOOD PA_CONTEXT_IS_GOOD -#elif PA_API_VERSION != 12 -#error Invalid PulseAudio API version -#endif +#if PA_API_VERSION == 12 #ifndef PA_CHECK_VERSION #define PA_CHECK_VERSION(major,minor,micro) \ @@ -1448,3 +1432,18 @@ void alc_pulse_probe(enum DevProbe type) //{{{ } } //}}} //}}} + +#else + +#warning "Unsupported API version, backend will be unavailable!" + +ALCboolean alc_pulse_init(BackendFuncs *func_list) +{ return ALC_FALSE; (void)func_list; } + +void alc_pulse_deinit(void) +{ } + +void alc_pulse_probe(enum DevProbe type) +{ (void)type; } + +#endif |