From owner-freebsd-gecko@freebsd.org Thu Jun 27 18:06:18 2019 Return-Path: Delivered-To: freebsd-gecko@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4A32415C90FF for ; Thu, 27 Jun 2019 18:06:18 +0000 (UTC) (envelope-from andreas@drewke.net) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id BACCB699A3 for ; Thu, 27 Jun 2019 18:06:17 +0000 (UTC) (envelope-from andreas@drewke.net) Received: by mailman.ysv.freebsd.org (Postfix) id 75D2015C90FE; Thu, 27 Jun 2019 18:06:17 +0000 (UTC) Delivered-To: gecko@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5345E15C90FD for ; Thu, 27 Jun 2019 18:06:17 +0000 (UTC) (envelope-from andreas@drewke.net) Received: from mailrelay4-3.pub.mailoutpod1-cph3.one.com (mailrelay4-3.pub.mailoutpod1-cph3.one.com [46.30.212.13]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B118769477 for ; Thu, 27 Jun 2019 18:06:15 +0000 (UTC) (envelope-from andreas@drewke.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=drewke.net; s=20140924; h=content-transfer-encoding:content-type:in-reply-to:mime-version:date: message-id:from:references:cc:to:subject:from; bh=iAFC4MPlvCRfvgLGscVTPUPmkh0z2MUXQrpe/M4VjHE=; b=B6kZE2/0YveEWvccxClTGFtjHEbBRcjYYFPd6yJMfMH0/nTmp7U46nuX0av1KMmbWpLZLNRreu1I5 +kmUYwkCe+ebdy6ZLP825Gkelfj+MUPMrEjegDinee+Ng1JdB+m6iWjaX6u5uo1pKpjOfYnKuz5SxR fSWFSjwSs4NQY3xk= X-HalOne-Cookie: ed623ee1ea96e530bc7c95d45538a77eb2e453d8 X-HalOne-ID: fccab340-9903-11e9-827c-d0431ea8bb10 Received: from [IPv6:2001:16b8:48ae:1300:7285:c2ff:fe43:64aa] (unknown [2001:16b8:48ae:1300:7285:c2ff:fe43:64aa]) by mailrelay4.pub.mailoutpod1-cph3.one.com (Halon) with ESMTPSA id fccab340-9903-11e9-827c-d0431ea8bb10; Thu, 27 Jun 2019 17:50:02 +0000 (UTC) Subject: Re: FireFox + Pulseaudio is always using sink 0 instead of default sink(9 in my case) To: Jan Beich Cc: gecko@FreeBSD.org References: <9c69393f-a3b1-09d8-1c14-5f9a0ff1ca46@drewke.net> <953079fc-a859-ad8a-44c4-d4b8f383e818@drewke.net> <4l4d-y0w8-wny@FreeBSD.org> From: Andreas Drewke Message-ID: <54873892-dc62-4c88-5ab1-1c2a3bd8b0f7@drewke.net> Date: Thu, 27 Jun 2019 17:50:01 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <4l4d-y0w8-wny@FreeBSD.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Rspamd-Queue-Id: B118769477 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=drewke.net header.s=20140924 header.b=B6kZE2/0 X-Spamd-Result: default: False [-2.01 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[drewke.net:s=20140924]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; NEURAL_SPAM_SHORT(0.47)[0.475,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[drewke.net]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[drewke.net:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[13.212.30.46.list.dnswl.org : 127.0.5.0]; MX_GOOD(-0.01)[mx1.pub.mailpod3-cph3.one.com,mx2.pub.mailpod3-cph3.one.com,mx3.pub.mailpod3-cph3.one.com]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(-0.18)[ipnet: 46.30.208.0/21(-0.50), asn: 51468(-0.38), country: DK(-0.02)]; ASN(0.00)[asn:51468, ipnet:46.30.208.0/21, country:DK]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-gecko@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gecko Rendering Engine issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Jun 2019 18:06:18 -0000 Hi, $ ffmpeg -i ChID-BLITS-EBU-Narration.mp4 -f wav - | paplay This indeed uses sink 0 in your test. If I do $ ffmpeg -i ChID-BLITS-EBU-Narration.mp4 -f wav - | paplay -d 9 i hear the sound. Any hints how to fix this? My default.pa looks like:     $ cat .config/pulse/default.pa     .include /usr/local/etc/pulse/default.pa     load-module module-combine-sink sink_name=record-n-play slaves=oss_output.dsp6 sink_properties=device.description="Record-and-Play"     set-default-sink record-n-play Many thanx and Best regards Andreas On 2019-06-25 20:29, Jan Beich wrote: > Andreas Drewke writes: > >>> Have you tried "pacmd set-default-sink 9" ? Alternatively, remove >>> ~/.config/pulse and let PA pick up default from hw.snd.default_unit. >> Yes. Both. Also be aware that >> >>> about:support Shows 9 as default device. This is strange. Indeed >> setting >media.cubeb.output_device does not work too. I have now no >> idea how to fix this. However if FBSD 13 comes out I do a fresh >> install. But maybe you still have an idea. Many thanx and Best regards > Does paplay(1) use the correct sink? Maybe default sink doesn't persist > after pulseaudio daemon exits. > > $ fetch https://www2.iis.fraunhofer.de/AAC/ChID-BLITS-EBU-Narration.mp4 > $ pkill pulseaudio > $ ffmpeg -i ChID-BLITS-EBU-Narration.mp4 -f wav - | paplay > $ firefox ChID-BLITS-EBU-Narration.mp4