Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Oct 2021 10:57:06 +0200
From:      J P <webplication@gmail.com>
To:        Hans Petter Selasky <hps@selasky.org>
Cc:        freebsd-multimedia@freebsd.org
Subject:   Re: tee-like function via virtual_oss
Message-ID:  <CABcCtUR2B4BajCK=FKbpOvkJNMw-4=HDO7BG-L8TrE=DkmvaSg@mail.gmail.com>
In-Reply-To: <65abdb25-fc5f-e760-7558-8713dbc2ed50@selasky.org>
References:  <CABcCtURUbpfGk6U7qjycqEoBp5WKOzYUwuJbjMOXqDCMZtKtPQ@mail.gmail.com> <03103736-8052-5901-b5bf-288a313af874@selasky.org> <b31c652f-49b5-9d93-640a-242cdcce56dc@selasky.org> <CABcCtUSK4MZP8hPYjhNaVR_GT%2BnWghEFLpwviYpkEmwYeRGkxA@mail.gmail.com> <8ff167fe-51e7-2239-2fa6-69a935a5dc11@selasky.org> <CABcCtUQaFQwD-hsbOXpEUFa-wEQ8aenH5NSj-8o9xqpH05fP1w@mail.gmail.com> <CABcCtUSF1CS6c4NSKx0WRHUwGffE8azTdC20%2BoUxF_VT6OFYcw@mail.gmail.com> <65abdb25-fc5f-e760-7558-8713dbc2ed50@selasky.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--000000000000a2ef8705cf015050
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Hi,
so I finally got some time to play with this thing.

Virtual_oss does work as you indicate as long as I use sox'splay/rec as in
your example.

When I use firefox it does play but when I record there is no sound in the
recorded file.

I have firefox compiled as follows:
Options        :
        ALSA           : off
        CANBERRA       : off
        DBUS           : on
        DEBUG          : off
        FFMPEG         : on
        JACK           : off
        LIBPROXY       : off
        LTO            : off
        OPTIMIZED_CFLAGS: on
        PROFILE        : on
        PULSEAUDIO     : on
        SNDIO          : off
        TEST           : off

Firefox uses PA, so I can set the playback device to the newly created
dsp0.9 (it pops up as a duplicate dps0, I mean, by the same name) but it's
there, reproduces audio and I can set the volume:
cat /dev/sndstat
Installed devices:
pcm0: <ATI R6xx (HDMI)> (play) default
pcm1: <ATI R6xx (HDMI)> (play)
pcm2: <Realtek ALC662 rev3 (Analog)> (play/rec)
pcm3: <Realtek ALC662 rev3 (Front Analog Headphones)> (play)
pcm4: <USB audio> (play/rec)
Installed devices from userspace:
pcm0: <Virtual OSS> (play/rec)
dsp0.9: <Virtual OSS> (play/rec)

Note how the "original" device although it's still there, is not functional
from firefox (i.e. plays no sound anymore), I do have to switch to the new
device for playback. This behavior is not shown by mplayer, for example,
that uses whatever the hw.snd_default_unit is, in this case pcm0, and
works. Sox's play, needs the env AUDIODEV to be set to the news device to
work, otherwise plays no sound either.

Nevertheless, the file recorded when firefox reproduces audio, contains
only 0s.
Can you suggest how to solve? Thank you.
BR

El mi=C3=A9, 6 oct 2021 a las 10:17, Hans Petter Selasky (<hps@selasky.org>=
)
escribi=C3=B3:

> On 10/6/21 10:12 AM, J P wrote:
> > -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
>
> You've swapped two arguments. Try this:
>
> -P /dev/dsp0.9 -d dsp0
>
> --HPS
>

--000000000000a2ef8705cf015050--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CABcCtUR2B4BajCK=FKbpOvkJNMw-4=HDO7BG-L8TrE=DkmvaSg>