From nobody Tue Nov 16 16:53:41 2021 X-Original-To: freebsd-current@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 D9B3D189E74C for ; Tue, 16 Nov 2021 16:53:45 +0000 (UTC) (envelope-from ludovit.koren@gmail.com) Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) (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 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HtsZw3Pvyz4ljl for ; Tue, 16 Nov 2021 16:53:44 +0000 (UTC) (envelope-from ludovit.koren@gmail.com) Received: by mail-ed1-x533.google.com with SMTP id y12so34309729eda.12 for ; Tue, 16 Nov 2021 08:53:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:user-mail-address:date:in-reply-to :message-id:user-agent:mime-version; bh=9xSaiqnkBXtceV2MsxiiQyl/7Gr+c06yNbdRzZXA5xQ=; b=Jl/DljkuptlXO4kz90awjbk8E6K5cSHME6m6be4go8UuqZPiH0meU41mu559eCLFVw lCsXQ5kBBz2X9EQN9rO8I3iy0plfAGiEnq/pJ1AQZEcuGos/lEvl07ugZWFIE8FcjS5j i6DcuL6IzUli0DfaHIPr44vdDeOfDh+rEtQ0CAnBLrcqIQC40jpc5/KKTIRoJnqKwPYP q3r50yaPLLMGGpIupjlkRCsOS14PuXRco5XvpYMfYdoAih8PMEu85f+qPBlsbXvMr+60 EIRVWyY3XAh9/7DaQf5geujq8HsAl9q8nswpllQq7MF9TMNBL8ovn4MUTZRzwHZMllqN 4lLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:user-mail-address :date:in-reply-to:message-id:user-agent:mime-version; bh=9xSaiqnkBXtceV2MsxiiQyl/7Gr+c06yNbdRzZXA5xQ=; b=G7RaN+IE6uronLtYgwrjwrh7l2xOPB9SgIgr8ULhysEPIE/QngLL5ozRqEA3rUKxLd 1RxH9pgCeg5NbcNbzmB/noVNstGqTBnpmrvYPThcLFigaOeNemd5nDDl7Ypu1KhAhlGZ wgtSs5DHesKTvMTAnc6rsCmWv/zg+4tuj1ip+aw0ct3pwXDkKAKEHNUGARx3euLu6pDx 6Mynu6gvlEwyqZdlBlgkZ51wr4FKgi1M6ahMIgtaBriwnJf9Ntajq1/ykVhmQ5qdXn0S Fljjyl3yCeLYE0miY/g7XC6ZgygiBwu2KzGCsDoqzOhvKMAQCaZu/nAll3gtlD68dbby fvog== X-Gm-Message-State: AOAM5335O3eMbkuCQ1AMw3bvWlwihhWe2AUs0sIdJnKPidBByxRk+5Ht 4+a2TUY+kEReikTi0gGOpAbpCOghvFI= X-Google-Smtp-Source: ABdhPJzOuhWipZERYqAB4q1zprECjnMY/N1bW+k+02sdGzz9reoK1+XgbjAv6CRKI0ubaV+QcAJAnA== X-Received: by 2002:a05:6402:35cc:: with SMTP id z12mr11896131edc.393.1637081622748; Tue, 16 Nov 2021 08:53:42 -0800 (PST) Received: from jedi.localdomain (adsl-dyn-28.95-102-251.t-com.sk. [95.102.251.28]) by smtp.gmail.com with ESMTPSA id cs12sm8672564ejc.15.2021.11.16.08.53.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Nov 2021 08:53:42 -0800 (PST) Received: by jedi.localdomain (Postfix, from userid 1001) id 9D5D81A89ED; Tue, 16 Nov 2021 17:53:41 +0100 (CET) From: Ludovit Koren To: Hans Petter Selasky Cc: freebsd-current@freebsd.org Subject: Re: sound on FreeBSD 14.0-CURRENT References: <86h7cc5tgq.fsf@gmail.com> <8e946cd7-6380-87cc-9f9d-f624717a0954@selasky.org> <86czn05rcb.fsf@gmail.com> <6c443abb-2d0f-ab04-2d8f-16e74323f4af@selasky.org> User-Mail-Address: ludovit.koren@gmail.com Date: Tue, 16 Nov 2021 17:53:41 +0100 In-Reply-To: <6c443abb-2d0f-ab04-2d8f-16e74323f4af@selasky.org> (Hans Petter Selasky's message of "Tue, 16 Nov 2021 13:42:56 +0100") Message-ID: <868rxo59ey.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (berkeley-unix) List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain X-Rspamd-Queue-Id: 4HtsZw3Pvyz4ljl X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b="Jl/Dljku"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of ludovitkoren@gmail.com designates 2a00:1450:4864:20::533 as permitted sender) smtp.mailfrom=ludovitkoren@gmail.com X-Spamd-Result: default: False [-2.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RECEIVED_SPAMHAUS_PBL(0.00)[95.102.251.28:received]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; MID_RHS_MATCH_FROM(0.00)[]; TAGGED_FROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; 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)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; NEURAL_SPAM_SHORT(1.00)[1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::533:from]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N >>>>> Hans Petter Selasky writes: > On 11/16/21 11:26, Ludovit Koren wrote: >>>>>>> Hans Petter Selasky writes: >> > On 11/16/21 10:40, Ludovit Koren wrote: >> >> Hi, >> >> I am running FreeBSD 14.0-CURRENT #0 main-n250646-c0525ab1d1c-dirty: >> >> Sat Nov 13 16:42:44 CET 2021 >> >> Here is the output from: >> >> cat /dev/sndstat >> >> Installed devices: >> >> pcm0: (play/rec) default >> >> pcm1: (play) >> >> pcm2: (play) >> >> Installed devices from userspace: >> >> dsp: (play/rec) >> >> vdsp: (play/rec) >> >> I am running: >> >> /usr/local/sbin/virtual_oss -B -D /var/run/virtual_oss/dsp.pid -T >> >> /dev/sndstat -S -i 8 -C 18 -c 18 -r 48000 -b 32 -s 512 -f /dev/dsp0 >> >> -c 2 -d dsp -c 18 -d vdsp -t vdsp.ctl >> >> I am not able to redirect to different output even if I try for >> >> example: >> >> sysctl hw.snd.default_unit=1 >> >> Please see the attached output from: sysctl dev.pcm, sysctl hw.snd >> >> and >> >> dmesg. >> >> I did not find any hint how to redirect the sound output to the >> >> different >> >> device except hw.snd.default_unit. The output remains in the default >> >> output. Am I missing something or doing something wrong? >> >> >> > Hi, >> > When you are using virtual_oss , hw.snd.default_unit is not >> used. >> > man virtual_oss_cmd >> > Try this instead: >> > virtual_oss_cmd /dev/vdsp.ctl -f /dev/dsp1 >> Unfortunately, even the command is not working. >> > Maybe your virtual_oss installation needs to be upgraded then? It > should be supported. >pkg info virtual_oss virtual_oss-1.2.15 Name : virtual_oss Version : 1.2.15 Installed on : Tue Nov 16 12:39:14 2021 CET Origin : audio/virtual_oss Architecture : FreeBSD:14:amd64 Prefix : /usr/local Categories : audio Licenses : BSD2CLAUSE Maintainer : hselasky@FreeBSD.org WWW : https://github.com/hselasky/virtual_oss Comment : Virtual OSS multi device mixer application Options : BLUETOOTH : on BT_SPEAKER : on COMMAND : on DEBUG : off EQUALIZER : on HTTPD : on Shared Libs required: libfftw3.so.3 libsamplerate.so.0 Annotations : FreeBSD_version: 1400041 Flat size : 140KiB Description : Virtual OSS is an audio mixing application that multiplexes and demultiplexes a single OSS device into multiple customizable OSS compatible devices using character devices in userspace. These devices can be used to record played back audio and mix the individual channels in multiple ways. Virtual OSS also supports playback and recording through bluetooth audio devices. WWW: https://github.com/hselasky/virtual_oss It is not working... Just a thought... Could not be the problem how are the apps built (chromium, firefox), i.e. which options are set on? regards, lk