+/** @brief Look up an audio API by name */
+const struct uaudio *uaudio_find(const char *name) {
+ int n;
+
+ for(n = 0; uaudio_apis[n]; ++n)
+ if(!strcmp(uaudio_apis[n]->name, name))
+ return uaudio_apis[n];
+ if(!strcmp(name, "network"))
+ return &uaudio_rtp;
+ fatal(0, "cannot find audio API '%s'", name);
+}
+