From nobody Mon Oct 4 07:21:02 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 377D317E974D for ; Mon, 4 Oct 2021 07:21:17 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [IPv6:2a01:4f8:c17:6c4b::2]) (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 4HNBwF0Ymhz3nYr for ; Mon, 4 Oct 2021 07:21:16 +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) server-digest SHA256) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id EF29426052B; Mon, 4 Oct 2021 09:21:14 +0200 (CEST) Subject: Re: tee-like function via virtual_oss To: J P , freebsd-multimedia@freebsd.org References: <03103736-8052-5901-b5bf-288a313af874@selasky.org> From: Hans Petter Selasky Message-ID: <8ff167fe-51e7-2239-2fa6-69a935a5dc11@selasky.org> Date: Mon, 4 Oct 2021 09:21:02 +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: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4HNBwF0Ymhz3nYr X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N 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=/dev/dsp9 play somefile.wav & env AUDIODEV=/dev/dsp9 rec somerecording.wav --HPS