module_x11_bell_la_SOURCES = module-x11-bell.c
module_x11_bell_la_CFLAGS = $(AM_CFLAGS) $(X_CFLAGS)
module_x11_bell_la_LDFLAGS = -module -avoid-version
-module_x11_bell_la_LIBADD = $(AM_LIBADD) $(X_PRE_LIBS) $(X_LIBS) $(X_EXTRA_LIB)
+module_x11_bell_la_LIBADD = $(AM_LIBADD) $(X_PRE_LIBS) -lX11 $(X_LIBS) $(X_EXTRA_LIB)
endif
libpolyp_la_SOURCES = polyplib.h \
assert(bq);
return bq->minreq;
}
+
+void pa_memblockq_prebuf_disable(struct pa_memblockq *bq) {
+ assert(bq);
+ bq->prebuf = 0;
+}
/* Return how many bytes are missing in queue to the specified fill amount */
uint32_t pa_memblockq_missing(struct pa_memblockq *bq);
-
+/* Returns the minimal request value */
uint32_t pa_memblockq_get_minreq(struct pa_memblockq *bq);
+/* Force disabling of pre-buf even when the pre-buffer is not yet filled */
+void pa_memblockq_prebuf_disable(struct pa_memblockq *bq);
+
#endif
switch (pa_stream_get_state(s)) {
case PA_STREAM_CREATING:
+ case PA_STREAM_TERMINATED:
break;
case PA_STREAM_READY:
fprintf(stderr, "Stream successfully created\n");
break;
- case PA_STREAM_TERMINATED:
- quit(0);
- break;
-
case PA_STREAM_FAILED:
default:
fprintf(stderr, "Stream errror: %s\n", pa_strerror(pa_context_errno(pa_stream_get_context(s))));
}
s->drain_request = 0;
+
+ pa_memblockq_prebuf_disable(s->memblockq);
if (!pa_memblockq_is_readable(s->memblockq))
pa_pstream_send_simple_ack(c->pstream, tag);
else {
s->drain_request = 1;
s->drain_tag = tag;
+
+ pa_sink_notify(s->sink_input->sink);
}
}