Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Oct 2021 10:12:16 +0200
From:      J P <webplication@gmail.com>
To:        freebsd-multimedia@freebsd.org
Subject:   Re: tee-like function via virtual_oss
Message-ID:  <CABcCtUSF1CS6c4NSKx0WRHUwGffE8azTdC20%2BoUxF_VT6OFYcw@mail.gmail.com>
In-Reply-To: <CABcCtUQaFQwD-hsbOXpEUFa-wEQ8aenH5NSj-8o9xqpH05fP1w@mail.gmail.com>
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>

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

Hi,
no chance so far, just to be sure I got you right:

   1. /dev/dsp0.9 created when basename_clone =3D 1
   2. virtual oss started with

-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

Still nothing when capturing.

Environment: trying to grab audio from Firefox under KDE.

Firefox is compiled with PULSEAUDIO on.

When I enable virtual_oss and then start KDE there are no devices and the
mixer does not work, so I cannot set the default playback device nor assign
another playback device to Firefox when it outputs audio. It relays on
hw.snd.default_unit (which happens to be set to 0).

Furthermore when virtual_oss is started other apps behave inconsistently:
vlc only shows the virtual_oss device in the list of output devices, all
the other are gone, but audacity correctly shows the other rec devices as
well as virtual_oss.

What am I doing wrong?

Thank you.

El lun, 4 oct 2021 a las 12:38, J P (<webplication@gmail.com>) escribi=C3=
=B3:

> Thank you for your email.
>
> I think the use-case I am facing is different: the player is using
> /dev/dsp0.something, I have no control over it.
>
> Furthermore, since I installed virtual_oss all the audio devices have gon=
e
> from PulseAudio, which is a little odd. On top of this, /dev/ is being
> populated with a lot of /dev/dsp0.x (now I have 14) and the number grows
> the more I use audio.
>
> Can my goal be achieved with virtual_oss or would you suggest some other
> tool?
>
> Thank you.
>
>
>
> El lun, 4 oct 2021 a las 9:21, Hans Petter Selasky (<hps@selasky.org>)
> escribi=C3=B3:
>
>> 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=3D/dev/dsp9 play somefile.wav &
>>
>> env AUDIODEV=3D/dev/dsp9 rec somerecording.wav
>>
>> --HPS
>>
>

--000000000000ff878905cdaab406--



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