From nobody Sun Oct 3 21:33:20 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 D2C6F17D32E4 for ; Sun, 3 Oct 2021 21:33:39 +0000 (UTC) (envelope-from webplication@gmail.com) Received: from mail-io1-xd2d.google.com (mail-io1-xd2d.google.com [IPv6:2607:f8b0:4864:20::d2d]) (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 4HMxtB3pz6z4dqk for ; Sun, 3 Oct 2021 21:33:38 +0000 (UTC) (envelope-from webplication@gmail.com) Received: by mail-io1-xd2d.google.com with SMTP id e144so18039744iof.3 for ; Sun, 03 Oct 2021 14:33:38 -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=82+o5/YCxS7E5/GqIKqdP8v34kPLBwSdRXHSZZJVu/Y=; b=Lo2qpEomsXzyYvhUUQAl8xkto+P82mDWvYWf0aV9eJocuFDZ1PJ5ZMSZocmPs1YlWW IIw6NoJGFWEaqn5DrcRQAfmisg0/FjJ4XHwIvvCsYGjS2SG091sJyUegiPVAG4DWhd08 dTXokZkMTIpQFVlqAbVTuI0qOF/TWPe4dPLDKZX6Ca16FS0Fq17wfsZ4Q3bV5AwSghSA V3hoTucsxlkoBPIyQtDPwoS00drs/1/5AIkPuKhMEVV9nTDN2fKAG6OnuhttFmMeHdUZ jtoKC8H1oCJlhXGyUmBUnKv7uXdEIvwkB3HggyYee7tWo+GTfrzzPIntS0HR9l4xzxbS QqTQ== 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=82+o5/YCxS7E5/GqIKqdP8v34kPLBwSdRXHSZZJVu/Y=; b=oKVZBBAvW31/pE+/dW/+jB7eVYCJsqRKtbp4KzB2d3cWljCb+LJq/8VbDUC5ci57e5 MCu2vp+A4CdzonzF111XC+qLT6U4DOaI5su8SHXpNr3v9h9wWgteVMr09hC53bRhmmib 0ZzLQi1PP7MY+MDlCT/zgdebZfZArTGAwj9Llw9TL2KDCLA1muRXGoOB3io3zFgo/wag mtmichH1L2y99Y+Jx0gt36nyKQLOlXUeWJL7ek1qzK8Z4LmL9IvSoSYEbtkn+5orQZ9R YE9ihuQVp6A3u8a38V8ct3MfQ9W6267SR2r0S/Im6dkjTk7fVPvcxNtC36HeS4fr853r XX/Q== X-Gm-Message-State: AOAM532A5wc4mncfjcM6uWRbmsvE+tZKy8bt6GeckhikPEtO93rMO7z8 7fIdE/85Z6cEaozLac3NTL3ZsIDaybKcRTLap4iLtbf5Z5k= X-Google-Smtp-Source: ABdhPJyLxpyDyf7urkfOFvDbvShOPEmtALaDijnaNcgjCfldJqe8eSXEBjGfGlQuYz92m3ERbfxpHzSy0EzaIhYrpEk= X-Received: by 2002:a6b:4407:: with SMTP id r7mr6949286ioa.72.1633296812269; Sun, 03 Oct 2021 14:33:32 -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> In-Reply-To: From: J P Date: Sun, 3 Oct 2021 23:33:20 +0200 Message-ID: Subject: Re: tee-like function via virtual_oss To: freebsd-multimedia@freebsd.org Content-Type: multipart/alternative; boundary="0000000000004ee2cb05cd798cfa" X-Rspamd-Queue-Id: 4HMxtB3pz6z4dqk X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=Lo2qpEom; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of webplication@gmail.com designates 2607:f8b0:4864:20::d2d as permitted sender) smtp.mailfrom=webplication@gmail.com X-Spamd-Result: default: False [-4.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]; 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::d2d:from]; NEURAL_HAM_SHORT(-1.00)[-1.000]; 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 --0000000000004ee2cb05cd798cfa Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, thank you. It does not seems to work. I get all null samples when recording. Maybe it's a matter of gain? How do I control gain with virtual_oss? BR, El dom, 3 oct 2021 a las 21:24, Hans Petter Selasky () escribi=C3=B3: > On 10/3/21 9:18 PM, Hans Petter Selasky wrote: > > On 10/3/21 5:47 PM, J P wrote: > >> Hi, > >> I need to record what is being played back from a play-only device: > >> pcm0: (play) default > >> > >> I thought that virtual_oss might come at hand for this and function in= a > >> "tee-like" fashion but I am unable to have it work. > >> > >> My config is as follows: > >> -T /dev/sndstat -C 2 -c 2 -r 48000 -b 24 -s 8.0ms -f /dev/null -d dsp5 > -M > >> x,0,5,0,0,0 > >> > >> What am I doing wrong? > >> > >> It seems that this configuration connects the input of dsp5 to the > output > >> of dsp0, but I actually need the other way around. > >> > >> Thank you. > > > > Hi, > > > > Try this: > > > > virtual_oss -T /dev/sndstat -C 2 -c 2 -r 48000 -b 24 -s 8.0ms -R > > /dev/null -P /dev/dsp0 -d dsp9 -M x,0,0,0,0,0 -M x,1,1,0,0,0 > > > > You need two monitor filters, one for each channel. > > > > --HPS > > > > Hi, > > Maybe you want to add the -S option too, to support re-sampling. > > Anyway, if you want the default audio device to behave like this, that > what you play back can instantly be recorded, then replace "-d dsp9" > with just "-d dsp". > > --HPS > --0000000000004ee2cb05cd798cfa--