Re: Firefox and sndio
On Sun, 29 Jan 2017 12:53:10 +0300 abiwrote: > On 29.01.2017 05:10, Jan Beich wrote: > > Mike Clarke writes: > > > >> On Sat, 28 Jan 2017 14:58:51 + > >> Grzegorz Junka wrote: > >> > >>> On 28/01/2017 11:37, Tobias Kortkamp wrote: > On Sat, Jan 28, 2017, at 11:23, Grzegorz Junka wrote: > > Audio in Firefox seems to be working fine when ALSA is enabled. But when > > ALSA is disabled and only SNDIO is enabled there is no sound. In either > > case I had PULSEAUDIO disabled. What's the expected configuration for > > this to work? > Is sndiod running? If not: > > sysrc sndiod_enable=YES > service sndiod start > > >>> > >>> Thanks Tobias. That helped. Out of interest. Is there any reason why I > >>> should prefer either SNDIO, PUlSEAUDIO or ALSA? > >> > >> This currently creates a problem for those of us using Firefox from > >> packages because the default build has SNDIO turned off. > >> > >> $ pkg info firefox > > [...] > >> ALSA : on > > [...] > >> PULSEAUDIO : on > > [...] > >> SNDIO : off > > > > Only backends that support lazy bindings are enabled by default i.e., > > try PULSEAUDIO, if N/A fallback to ALSA, if N/A fallback to native OSS. > > SNDIO has lower priority than ALSA in libcubeb but higher in WebRTC and > > cannot fallback to native OSS as well. SNDIO currently doesn't work > > inside jail and neither sndiod nor Firefox support Capsicum sandboxing, > > so falling back to ALSA (or OSS) is important. > > Why OSS is not added to port options? OSS is that, probably, all of us have. I was about the bring the subject, obviously there is no OSS support in firefox yet (!!!), but there is an ongoing work on mozilla's bugzilla: https://bugzilla.mozilla.org/show_bug.cgi?id=1021761 Did somebody tried to streamline/backport it? With firefox-esr, the latest version do not apply, and I've issue autoreconf-ing after applying previous versions... -- Matthieu Volat pgpFP2iHrd8XE.pgp Description: OpenPGP digital signature
Re: Firefox and sndio
On 29.01.2017 05:10, Jan Beich wrote: Mike Clarkewrites: On Sat, 28 Jan 2017 14:58:51 + Grzegorz Junka wrote: On 28/01/2017 11:37, Tobias Kortkamp wrote: On Sat, Jan 28, 2017, at 11:23, Grzegorz Junka wrote: Audio in Firefox seems to be working fine when ALSA is enabled. But when ALSA is disabled and only SNDIO is enabled there is no sound. In either case I had PULSEAUDIO disabled. What's the expected configuration for this to work? Is sndiod running? If not: sysrc sndiod_enable=YES service sndiod start Thanks Tobias. That helped. Out of interest. Is there any reason why I should prefer either SNDIO, PUlSEAUDIO or ALSA? This currently creates a problem for those of us using Firefox from packages because the default build has SNDIO turned off. $ pkg info firefox [...] ALSA : on [...] PULSEAUDIO : on [...] SNDIO : off Only backends that support lazy bindings are enabled by default i.e., try PULSEAUDIO, if N/A fallback to ALSA, if N/A fallback to native OSS. SNDIO has lower priority than ALSA in libcubeb but higher in WebRTC and cannot fallback to native OSS as well. SNDIO currently doesn't work inside jail and neither sndiod nor Firefox support Capsicum sandboxing, so falling back to ALSA (or OSS) is important. Why OSS is not added to port options? OSS is that, probably, all of us have. ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: Firefox and sndio
Mike Clarkewrites: > On Sat, 28 Jan 2017 14:58:51 + > Grzegorz Junka wrote: > >> On 28/01/2017 11:37, Tobias Kortkamp wrote: >> > On Sat, Jan 28, 2017, at 11:23, Grzegorz Junka wrote: >> >> Audio in Firefox seems to be working fine when ALSA is enabled. But when >> >> ALSA is disabled and only SNDIO is enabled there is no sound. In either >> >> case I had PULSEAUDIO disabled. What's the expected configuration for >> >> this to work? >> > Is sndiod running? If not: >> > >> > sysrc sndiod_enable=YES >> > service sndiod start >> > >> >> Thanks Tobias. That helped. Out of interest. Is there any reason why I >> should prefer either SNDIO, PUlSEAUDIO or ALSA? > > This currently creates a problem for those of us using Firefox from > packages because the default build has SNDIO turned off. > > $ pkg info firefox [...] > ALSA : on [...] > PULSEAUDIO : on [...] > SNDIO : off Only backends that support lazy bindings are enabled by default i.e., try PULSEAUDIO, if N/A fallback to ALSA, if N/A fallback to native OSS. SNDIO has lower priority than ALSA in libcubeb but higher in WebRTC and cannot fallback to native OSS as well. SNDIO currently doesn't work inside jail and neither sndiod nor Firefox support Capsicum sandboxing, so falling back to ALSA (or OSS) is important. As Firefox lacks a preference to force a specific audio backend if many are available we're stuck juggling dlopen(3) priorities e.g., SNDIO can be tried before PULSEAUDIO but after JACK, then ALSA, then OSS. ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: Firefox and sndio
On Sat, 28 Jan 2017 14:58:51 + Grzegorz Junkawrote: > On 28/01/2017 11:37, Tobias Kortkamp wrote: > > On Sat, Jan 28, 2017, at 11:23, Grzegorz Junka wrote: > >> Audio in Firefox seems to be working fine when ALSA is enabled. But when > >> ALSA is disabled and only SNDIO is enabled there is no sound. In either > >> case I had PULSEAUDIO disabled. What's the expected configuration for > >> this to work? > > Is sndiod running? If not: > > > > sysrc sndiod_enable=YES > > service sndiod start > > > > Thanks Tobias. That helped. Out of interest. Is there any reason why I > should prefer either SNDIO, PUlSEAUDIO or ALSA? This currently creates a problem for those of us using Firefox from packages because the default build has SNDIO turned off. $ pkg info firefox firefox-51.0_2,1 Name : firefox Version: 51.0_2,1 Installed on : Sat Jan 28 09:32:22 2017 GMT Origin : www/firefox Architecture : freebsd:11:x86:64 Prefix : /usr/local Categories : ipv6 www Licenses : Maintainer : ge...@freebsd.org WWW: http://www.mozilla.com/firefox Comment: Web browser based on the browser portion of Mozilla Options: ALSA : on BUNDLED_CAIRO : on CANBERRA : off DBUS : on DEBUG : off DTRACE : on FFMPEG : on GCONF : off GNOMEUI: off GTK2 : off GTK3 : on INTEGER_SAMPLES: off LIBPROXY : off OPTIMIZED_CFLAGS: on PGO: off PROFILE: off PULSEAUDIO : on RUST : on SNDIO : off TEST : off [snip] Annotations: cpe: cpe:2.3:a:mozilla:firefox:51.0:freebsd11:x64:2 no_provide_shlib: yes repo_type : binary repository : FreeBSD -- Mike Clarke ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: Firefox and sndio
On Sat, Jan 28, 2017, at 16:08, Marco Beishuizen wrote: > Works fine here with SNDIO enabled and ALSA/PULSEAUDIO disabled (with an > Audigy2, emu10kx driver in kernel). I don't have an sndiod running. Good to know, but if no sndiod is running then libsndio will default to /dev/dsp0 instead of using whatever you set in hw.snd.default_unit. The rc script takes that into account and looks at the sysctl and starts the daemon with the correct flags. It's no surprise when it doesn't work out of the box for some people. Another caveat is that you will not get any application level volume control without a running daemon. There is maybe an upcoming patch to change this, but I still recommend you run sndiod for now. ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: Firefox and sndio
On Sat, 28 Jan 2017, the wise Grzegorz Junka wrote: Audio in Firefox seems to be working fine when ALSA is enabled. But when ALSA is disabled and only SNDIO is enabled there is no sound. In either case I had PULSEAUDIO disabled. What's the expected configuration for this to work? Works fine here with SNDIO enabled and ALSA/PULSEAUDIO disabled (with an Audigy2, emu10kx driver in kernel). I don't have an sndiod running. Regards, Marco -- We prefer to believe that the absence of inverted commas guarantees the originality of a thought, whereas it may be merely that the utterer has forgotten its source. -- Clifton Fadiman, "Any Number Can Play" ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: Firefox and sndio
On 28/01/2017 11:37, Tobias Kortkamp wrote: On Sat, Jan 28, 2017, at 11:23, Grzegorz Junka wrote: Audio in Firefox seems to be working fine when ALSA is enabled. But when ALSA is disabled and only SNDIO is enabled there is no sound. In either case I had PULSEAUDIO disabled. What's the expected configuration for this to work? Is sndiod running? If not: sysrc sndiod_enable=YES service sndiod start Thanks Tobias. That helped. Out of interest. Is there any reason why I should prefer either SNDIO, PUlSEAUDIO or ALSA? ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: Firefox and sndio
On Sat, Jan 28, 2017, at 11:23, Grzegorz Junka wrote: > Audio in Firefox seems to be working fine when ALSA is enabled. But when > ALSA is disabled and only SNDIO is enabled there is no sound. In either > case I had PULSEAUDIO disabled. What's the expected configuration for > this to work? Is sndiod running? If not: sysrc sndiod_enable=YES service sndiod start ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Firefox and sndio
Audio in Firefox seems to be working fine when ALSA is enabled. But when ALSA is disabled and only SNDIO is enabled there is no sound. In either case I had PULSEAUDIO disabled. What's the expected configuration for this to work? ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"