On Fri, Jul 15, 2016 at 3:34 AM, Kurt Roeckx <k...@roeckx.be> wrote: > I also wonder how this fallback thing works. Things are linked to the > pulseaudio library, but if the pulseaudio binary isn't installed things fall > back to something else like alsa as far as I know. Is this something the > pulseaudio library does, or do you need to write the fallback yourself?
Currently, we try to dlopen the pulseaudio interface library and fall back to alsa if that fails. So it's a build-time dependency (for the headers) but not a run-time dependency. Except on gonk, where we assume it's available and link to it directly. See https://github.com/mozilla/gecko-dev/blob/378278ea830e7b01fb280d5274adccdfb2baab28/media/libcubeb/src/cubeb_pulse.c#L503 -r _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform