Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Oct 2021 23:33:20 +0200
From:      J P <webplication@gmail.com>
To:        freebsd-multimedia@freebsd.org
Subject:   Re: tee-like function via virtual_oss
Message-ID:  <CABcCtUSK4MZP8hPYjhNaVR_GT%2BnWghEFLpwviYpkEmwYeRGkxA@mail.gmail.com>
In-Reply-To: <b31c652f-49b5-9d93-640a-242cdcce56dc@selasky.org>
References:  <CABcCtURUbpfGk6U7qjycqEoBp5WKOzYUwuJbjMOXqDCMZtKtPQ@mail.gmail.com> <03103736-8052-5901-b5bf-288a313af874@selasky.org> <b31c652f-49b5-9d93-640a-242cdcce56dc@selasky.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--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 (<hps@selasky.org>)
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: <ATI R6xx (HDMI)> (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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CABcCtUSK4MZP8hPYjhNaVR_GT%2BnWghEFLpwviYpkEmwYeRGkxA>