From nobody Wed Oct 6 08:12:16 2021 X-Original-To: freebsd-multimedia@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id A814A17E480B for ; Wed, 6 Oct 2021 08:12:35 +0000 (UTC) (envelope-from webplication@gmail.com) Received: from mail-io1-xd31.google.com (mail-io1-xd31.google.com [IPv6:2607:f8b0:4864:20::d31]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HPRyV5Kplz4Snp for ; Wed, 6 Oct 2021 08:12:34 +0000 (UTC) (envelope-from webplication@gmail.com) Received: by mail-io1-xd31.google.com with SMTP id y197so1843520iof.11 for ; Wed, 06 Oct 2021 01:12:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=q0h30kAuZZ4wa1yOXCgt6a8mIWjLUr3NvUc++bK/PX8=; b=VFDXsq4JbUOuXS2lUn8s7mNHstXn3WNoUYYCYljMf/iB40pmrzNul7VnCaqeRYeSpr evCPM3T/ha2wU+02s6Jw7vHJeLyAlNzxpTmYtqfFbFChE+0W4RkqpqH3A7h/fkk6Cvux G5acGUOxsZr+xhcn+3QSdmXvGeLV+vXIbzhzpN5Rh4jjtLFMSmtXvoVpFhBgTmHcJHcv zDyUDAM5+oWmqfUB5Nvty3JrznyTG2+Bs3Y5+r8FRwUcE7gGguI4N1OcK0d0jPqAsX/P oUokCzIeOxxh4KkBHaFpz1l58pGAN3El+Nw6fGRX2koxvwnGHnJTWVQg1/vA+WxlKoBu n/Zw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=q0h30kAuZZ4wa1yOXCgt6a8mIWjLUr3NvUc++bK/PX8=; b=umXG2vEJD9et/La1n522qGpBeDQZECNEbkPb8OfyEsiUy2j1TeK7g15CtNJvZUcba4 VRjkWu577FiRGQGH1W7zvQaFIgxgNr9ZjucnhualKmzvCb8+H6907MjDBKKqg27t4wtf zmlaGNHcOppAcAN4vdB9lze1Z/7eL5LLhM0ip9ZKvChX6xptfCSw4Y+X3dM4jTmPHrdh rCPZwG/VKmIHsOa5OxDjpkwj0ePrEgQFHMF+L/LDCOgCDF45/QsW9Js5KR+6l18xeOXd /858lcl/5oJYc7zTzWWMTmu82gSDg0gNFGYk1LRgOG3PVOYg8odqrNq1MOVYOF+QXYD6 12zg== X-Gm-Message-State: AOAM532VDvqRhGA7+nalOQOCeB3AvLFBwQxWZwUxLEdwiP3/fOS6SifK 4uIRVKT3EZNkjURRdZR4W8D1b3fyCAUmJrmEskYc60X6UttLig== X-Google-Smtp-Source: ABdhPJxbWi94mRRlUJbHA3CUg+0K1/4Cmo6HSpzB0Zz1g9CFHLttlKFEOVLQh4R+BPz1RUMXljd4IFbEPRakH0h0Efo= X-Received: by 2002:a6b:c348:: with SMTP id t69mr5538443iof.2.1633507948332; Wed, 06 Oct 2021 01:12:28 -0700 (PDT) List-Id: Multimedia discussions List-Archive: https://lists.freebsd.org/archives/freebsd-multimedia List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-multimedia@freebsd.org MIME-Version: 1.0 References: <03103736-8052-5901-b5bf-288a313af874@selasky.org> <8ff167fe-51e7-2239-2fa6-69a935a5dc11@selasky.org> In-Reply-To: From: J P Date: Wed, 6 Oct 2021 10:12:16 +0200 Message-ID: Subject: Re: tee-like function via virtual_oss To: freebsd-multimedia@freebsd.org Content-Type: multipart/alternative; boundary="000000000000ff878905cdaab406" X-Rspamd-Queue-Id: 4HPRyV5Kplz4Snp X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=VFDXsq4J; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of webplication@gmail.com designates 2607:f8b0:4864:20::d31 as permitted sender) smtp.mailfrom=webplication@gmail.com X-Spamd-Result: default: False [-2.00 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; FROM_HAS_DN(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-multimedia@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000]; MID_RHS_MATCH_FROMTLD(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::d31:from]; NEURAL_SPAM_SHORT(1.00)[0.997]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] X-ThisMailContainsUnwantedMimeParts: Y --000000000000ff878905cdaab406 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, no chance so far, just to be sure I got you right: 1. /dev/dsp0.9 created when basename_clone =3D 1 2. virtual oss started with -T /dev/sndstat -C 2 -c 2 -r 48000 -b 24 -s 8.0ms -R /dev/null *-P /dev/dsp0 -d dsp0.9* -M x,0,0,0,0,0 -M x,1,1,0,0,0 -t dsp.ctl -i 10 -S Still nothing when capturing. Environment: trying to grab audio from Firefox under KDE. Firefox is compiled with PULSEAUDIO on. When I enable virtual_oss and then start KDE there are no devices and the mixer does not work, so I cannot set the default playback device nor assign another playback device to Firefox when it outputs audio. It relays on hw.snd.default_unit (which happens to be set to 0). Furthermore when virtual_oss is started other apps behave inconsistently: vlc only shows the virtual_oss device in the list of output devices, all the other are gone, but audacity correctly shows the other rec devices as well as virtual_oss. What am I doing wrong? Thank you. El lun, 4 oct 2021 a las 12:38, J P () escribi=C3= =B3: > Thank you for your email. > > I think the use-case I am facing is different: the player is using > /dev/dsp0.something, I have no control over it. > > Furthermore, since I installed virtual_oss all the audio devices have gon= e > from PulseAudio, which is a little odd. On top of this, /dev/ is being > populated with a lot of /dev/dsp0.x (now I have 14) and the number grows > the more I use audio. > > Can my goal be achieved with virtual_oss or would you suggest some other > tool? > > Thank you. > > > > El lun, 4 oct 2021 a las 9:21, Hans Petter Selasky () > escribi=C3=B3: > >> Hi, >> >> On 10/3/21 11:33 PM, J P wrote: >> > Hi, >> > thank you. >> > >> > It does not seems to work. I get all null samples when recording. >> > >> >> Which dsp device are you recording from? >> >> > Maybe it's a matter of gain? How do I control gain with virtual_oss? >> >> You can install virtual_oss_ctl to control the gain. >> >> I tested with SOX from ports and it works fine here: >> >> env AUDIODEV=3D/dev/dsp9 play somefile.wav & >> >> env AUDIODEV=3D/dev/dsp9 rec somerecording.wav >> >> --HPS >> > --000000000000ff878905cdaab406--