From nobody Sun Oct 3 19:24:19 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 8D5D717A4A1D for ; Sun, 3 Oct 2021 19:24:39 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [88.99.82.50]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4HMv1L4cSxz3vwG for ; Sun, 3 Oct 2021 19:24:38 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2020.home.selasky.org (unknown [178.17.145.105]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id C72B52600F2; Sun, 3 Oct 2021 21:24:30 +0200 (CEST) Subject: Re: tee-like function via virtual_oss From: Hans Petter Selasky To: J P , freebsd-multimedia@freebsd.org References: <03103736-8052-5901-b5bf-288a313af874@selasky.org> Message-ID: Date: Sun, 3 Oct 2021 21:24:19 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 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 In-Reply-To: <03103736-8052-5901-b5bf-288a313af874@selasky.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4HMv1L4cSxz3vwG X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of hps@selasky.org designates 88.99.82.50 as permitted sender) smtp.mailfrom=hps@selasky.org X-Spamd-Result: default: False [-1.28 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+a:mail.turbocat.net]; NEURAL_HAM_LONG(-1.00)[-1.000]; DMARC_NA(0.00)[selasky.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.997]; NEURAL_SPAM_SHORT(0.91)[0.914]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; FREEMAIL_TO(0.00)[gmail.com,freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:~]; ASN(0.00)[asn:24940, ipnet:88.99.0.0/16, country:DE]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N 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