diff options
Diffstat (limited to 'src/pulsecore/sink.h')
-rw-r--r-- | src/pulsecore/sink.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/pulsecore/sink.h b/src/pulsecore/sink.h index dab97453..958279c5 100644 --- a/src/pulsecore/sink.h +++ b/src/pulsecore/sink.h @@ -157,5 +157,9 @@ void pa_sink_render_into(pa_sink*s, pa_memchunk *target); void pa_sink_render_into_full(pa_sink *s, pa_memchunk *target); int pa_sink_process_msg(pa_msgobject *o, int code, void *userdata, pa_memchunk *chunk); - + +static inline int PA_SINK_OPENED(pa_sink_state_t x) { + return x == PA_SINK_RUNNING || x == PA_SINK_IDLE; +} + #endif |