+/* --- @au_getcacheinfo@ --- *
+ *
+ * Arguments: @au_cacheinfo *c@ = where to put the information
+ *
+ * Returns: ---
+ *
+ * Use: Extracts audio cache information.
+ */
+
+void au_getcacheinfo(au_cacheinfo *c)
+{
+ ausys_lock();
+ *c = cache;
+ ausys_unlock();
+ assert(c->sz_spare + c->sz_queue == c->sz_total);
+ assert(c->n_spare + c->n_queue == c->n_total);
+}
+
+/* --- @au_setcachelimit@ --- *
+ *
+ * Arguments: @size_t max@ = new cache limit
+ *
+ * Returns: ---
+ *
+ * Use: Reconfigures the maximum cache size. This probably isn't
+ * very useful, but it was easy...
+ */
+
+void au_setcachelimit(size_t max)
+{
+ ausys_lock();
+ cache.sz_max = max;
+ prune();
+ ausys_unlock();
+}
+