diff --git a/src/apulse-stream.c b/src/apulse-stream.c index a55744f..9b07850 100644 --- a/src/apulse-stream.c +++ b/src/apulse-stream.c @@ -374,6 +374,23 @@ pa_stream_get_timing_info(pa_stream *s) return &s->timing_info; } +APULSE_EXPORT +int +pa_stream_is_corked(pa_stream *s) +{ + trace_info("F %s s=%p\n", __func__, s); + return g_atomic_int_get(&s->paused); +} + +APULSE_EXPORT +int +pa_stream_is_suspended(pa_stream *s) +{ + trace_info("F %s s=%p\n", __func__, s); + // ALSA sink is never suspended + return 0; +} + APULSE_EXPORT pa_stream * pa_stream_new(pa_context *c, const char *name, const pa_sample_spec *ss, const pa_channel_map *map) diff --git a/src/notimplemented.c b/src/notimplemented.c index 1dc4cb4..fde1d49 100644 --- a/src/notimplemented.c +++ b/src/notimplemented.c @@ -815,20 +815,6 @@ const char *pa_stream_get_device_name(pa_stream *s) return NULL; } -APULSE_EXPORT -int pa_stream_is_suspended(pa_stream *s) -{ - trace_info("Z %s\n", __func__); - return 0; -} - -APULSE_EXPORT -int pa_stream_is_corked(pa_stream *s) -{ - trace_info("Z %s\n", __func__); - return 0; -} - APULSE_EXPORT int pa_stream_begin_write(pa_stream *p, void **data, size_t *nbytes) {