Re: [gentoo-user] Re: Pipewire not a dependency?

2022-10-01 Thread Daniel Sonck
On zaterdag 1 oktober 2022 19:11:19 CEST Wol wrote:
> On 01/10/2022 17:56, Michael wrote:
> > Anyway, I ventured into pipewire because I wanted to see if Skype would
> > work without pulseaudio and in this system it won't.  After I manually
> > installed pipewire Skype won't access the microphone.  
> 
> I've got some vague feeling that pipewire is designed to happily sit
> under pulseaudio. The design aim was to replace both Jack and pulseaudio
> but it basically just presents a sound device to the layers above, so
> just like you can stack block devices for disk access, you can stack
> jack, pulseaudio and pipewire for sound.
Well, it is actually designed as a drop-in replacement and won't present audio 
devices in the 
sense pulseaudio wants to receive it. I guess it would theoretically be 
possible to use 
pulseaudio's jack sink to talk to pipewire, but pipewire has the full 
pulseaudio interface for 
pulseaudio applications.
> 
> The big difference between a sound stack and a block stack is that a
> block stack is asynchronous and latency is (relatively) unimportant. In
> a sound stack some applications *demand* synchronicity, and latency is
> everything. Jack is extremely latency sensitive, pulseaudio buffers and
> doesn't care, and pipewire is intended to satisfy both.
> 
> So the intent was clearly to install pipewire underneath a working
> pulseaudio, and just move applications across as and when.
This was never an intent, pipewire was intended as an pulseaudio implementation 
by itself. So 
it doesn't need (and likely is incompatible running together with) pulseaudio 
in order to 
support pulseaudio clients. But it does need to be configured as such.
> 
> Cheers,
> Wol

Regards,

Daniel


Re: [gentoo-user] Screenrecording with audio from firefox

2020-06-03 Thread Daniel Sonck
Yes, I realize it might not have been clear, as I got a bit confused by my own 
thought process as well.

I will also answer in pieces related to your questions

On Wednesday, June 3, 2020 5:31:43 PM CEST tu...@posteo.de wrote:
> Hi Daniel,
> 
> sorry for not understanding the whole setup ...
> 
> Please see my inserted questions below:
> 
> On 06/03 04:44, Daniel Sonck wrote:
> > It might be that your Qt5 is perhaps partially updated or out of date
> > even,
> > but not sure. I do know that it can be a pain to compile due to Qt5
> > changing. If it's too much of a hassle to get it to work, Catia could be
> > replaced by QJackCtl, however then you will need to have the tweaks
> > Cadence does for you manually applied. Which, according to my system, is:
> > 
> > pcm.!default {
> > 
> > type plug
> > slave { pcm "jack" }
> > 
> > }
> > 
> > pcm.jack {
> > 
> > type jack
> > playback_ports {
> > 
> > 0 system:playback_1
> > 1 system:playback_2
> > 
> > }
> > capture_ports {
> > 
> > 0 system:capture_1
> > 1 system:capture_2
> > 
> > }
> > 
> > }
> > 
> > ctl.mixer0 {
> > 
> > type hw
> > card 0
> > 
> > ( In case you want to entirely not bother with pulseaudio )
> 
> The above setup is for alsa/jack/obs...right.
> Since jackd does not start (it crashes) and I am currently not in
> the mood to fix an error which helps to fix a problem which should
> fix a problem for an application which in first place was there to
> help me to fix an issue to record from Firefox...I will try
> pulseaudio -- despite the fact, that I really don't like it.

The crash might be due to it not getting exclusive access to alsa or the sound 
card not properly selected. Yes that configuration is for alsa -> jack -> obs/
simplescreenrecorder

> 
> > Or, like me where I have it set to pulseaudio mode which creates:
> Ok...the following is for alsa/pulseaudio/obs
> 
> > pcm.!default {
> > 
> > type plug
> > slave { pcm "pulse" }
> > 
> > }
> > 
> > pcm.pulse {
> > 
> > type pulse
> > 
> > }
> > 
> > ctl.mixer0 {
> > 
> > type hw
> > card 0
> > 
> > }
> > 
> > This would go into a file .asoundrc in your $HOME and force ALSA native
> > programs to actually hook up as Jack clients,
> 
> ...sorry...why jack? Do I need jack for pulseaudio?

Here I actually meant "using the first config file will force alsa native 
programs to connect to jack. Incidentally, the second solution will (usually) 
also work for alsa as it would do "alsa -> pulseaudio -> jack -> obs/
simplescreenrecorder", which is my default as I'm more accustomed to 
pulseaudio and jack (some programs like Discord really want pulseaudio)

> 
> > so you can manage your audio.
> > Note that you would still need to go into QJackCtls settings to setup the
> > correct main audio device
> 
> Pulseaudio->pavucontrolright?

this was still related to the first asoundrc file.

> 
> I am..irritated..at least;)
> 
> HLL! :)

Well, I will make sure it eventually works one way or another :) as I know how 
frustrating sound can be sometimes. As I said, I create music, as such I want 
Jack, but I also want to watch youtube without having to tear down my music 
setup. And I stream from time to time, so I use Jack/Alsa/Pulseaudio all at 
the same time and have picked up some things along the way.

> 
> Cheers!
> Meino
> 

Regards,

Daniel

> > On Wednesday, June 3, 2020 4:30:11 PM CEST tu...@posteo.de wrote:
> > > ‘QPainterPath ballPath’ has incomplete type and cannot be defined







Re: [gentoo-user] Screenrecording with audio from firefox

2020-06-03 Thread Daniel Sonck
It might be that your Qt5 is perhaps partially updated or out of date even, 
but not sure. I do know that it can be a pain to compile due to Qt5 changing. 
If it's too much of a hassle to get it to work, Catia could be replaced by 
QJackCtl, however then you will need to have the tweaks Cadence does for you 
manually applied. Which, according to my system, is:

pcm.!default {
type plug
slave { pcm "jack" }
}

pcm.jack {
type jack
playback_ports {
0 system:playback_1
1 system:playback_2
}
capture_ports {
0 system:capture_1
1 system:capture_2
}
}

ctl.mixer0 {
type hw
card 0
}
( In case you want to entirely not bother with pulseaudio )

Or, like me where I have it set to pulseaudio mode which creates:
pcm.!default {
type plug
slave { pcm "pulse" }
}

pcm.pulse {
type pulse
}

ctl.mixer0 {
type hw
card 0
}

This would go into a file .asoundrc in your $HOME and force ALSA native 
programs to actually hook up as Jack clients, so you can manage your audio. 
Note that you would still need to go into QJackCtls settings to setup the 
correct main audio device

On Wednesday, June 3, 2020 4:30:11 PM CEST tu...@posteo.de wrote:
> ‘QPainterPath ballPath’ has incomplete type and cannot be defined







Re: [gentoo-user] Screenrecording with audio from firefox

2020-06-03 Thread Daniel Sonck
I'm not entirely sure if it's part of portage yet (long time since I touched 
gentoo) but it's a modern jack routing program in similar style to the cadence 
program. If cadence exists, it's likely bundled with catia otherwise it can be 
found in the audio overlay, this issue specifically mentions it: https://
github.com/gentoo-audio/audio-overlay/issues/47

On Wednesday, June 3, 2020 4:17:15 PM CEST tu...@posteo.de wrote:
> Hi Daniel,
> 
> short question...what is catia (beside a CAD program by Dassault
> Systems... ;)...
> Can't find that in portage...
> 
> Cheers!
> Meino
> 
> On 06/03 03:47, Daniel Sonck wrote:
> > I just installed simplescreenrecorder as well. The same pulseaudio method
> > should also work for that by choosing the "Monitor" variants, although I
> > have to add that it would not allow you to capture both a mic and firefox
> > (or other application at the same time) unless you play back your own
> > microphone sound. With OBS you can add an Input and Output source to have
> > both mic and desktop audio.
> > 
> > If you want to have more control or are reluctant to use pulseaudio (as
> > some are) then it gets more complicated. With ALSA, I know there are ways
> > to support it by editing the ALSA configuration file but I don't know
> > anything about that (nor do I really like that approach).
> > 
> > I would then recommend using JACK instead, and setup ALSA programs to use
> > a
> > wrapper for JACK, this would allow you to route any audio through anything
> > (for which people in Music as I am use Jack) including mixing it together
> > before sending to SimpleScreenRecorder or OBS. The 2 tools I recommend to
> > add would be cadence (for configuring Jack + ALSA) and catia (to setup
> > the proper audio routing) possibly combined with some jack audio mixer to
> > get a "virtual mixing panel".
> > 
> > Hope this helps
> > 
> > Regards,
> > 
> > Daniel
> > 
> > On Wednesday, June 3, 2020 3:30:53 PM CEST tu...@posteo.de wrote:
> > > Hi,
> > > 
> > > To record my screen with audio I installed
> > > obs and then simplescreenrecoder.
> > > 
> > > Recording the video stream more or less works (I cannot record a
> > > firefox-window and need to record the full screen).
> > > 
> > > But recording the audio from the source which will be replayed
> > > by firefox only give me a stuttering sinus tone.
> > > 
> > > According to different tutorials I watched the recording of
> > > a gameplay works with video/audio which exactly mine setup.
> > > 
> > > Interestingly I cannot find the regarding options of both
> > > screen recorders any more (the tutorials refer to older versions
> > > of the recorders).
> > > 
> > > How can I record video and audio from the played source nonetheless?
> > > 
> > > Cheers!
> > > Meino







Re: [gentoo-user] Screenrecording with audio from firefox

2020-06-03 Thread Daniel Sonck
I just installed simplescreenrecorder as well. The same pulseaudio method 
should also work for that by choosing the "Monitor" variants, although I have 
to add that it would not allow you to capture both a mic and firefox (or other 
application at the same time) unless you play back your own microphone sound. 
With OBS you can add an Input and Output source to have both mic and desktop 
audio.

If you want to have more control or are reluctant to use pulseaudio (as some 
are) then it gets more complicated. With ALSA, I know there are ways to 
support it by editing the ALSA configuration file but I don't know anything 
about that (nor do I really like that approach).

I would then recommend using JACK instead, and setup ALSA programs to use a 
wrapper for JACK, this would allow you to route any audio through anything 
(for which people in Music as I am use Jack) including mixing it together 
before sending to SimpleScreenRecorder or OBS. The 2 tools I recommend to add 
would be cadence (for configuring Jack + ALSA) and catia (to setup the proper 
audio routing) possibly combined with some jack audio mixer to get a "virtual 
mixing panel".

Hope this helps

Regards,

Daniel

On Wednesday, June 3, 2020 3:30:53 PM CEST tu...@posteo.de wrote:
> Hi,
> 
> To record my screen with audio I installed
> obs and then simplescreenrecoder.
> 
> Recording the video stream more or less works (I cannot record a
> firefox-window and need to record the full screen).
> 
> But recording the audio from the source which will be replayed
> by firefox only give me a stuttering sinus tone.
> 
> According to different tutorials I watched the recording of
> a gameplay works with video/audio which exactly mine setup.
> 
> Interestingly I cannot find the regarding options of both
> screen recorders any more (the tutorials refer to older versions
> of the recorders).
> 
> How can I record video and audio from the played source nonetheless?
> 
> Cheers!
> Meino







Re: [gentoo-user] Screenrecording with audio from firefox

2020-06-03 Thread Daniel Sonck
Hello,

For OBS you can use the Audio Output Capture which requires PulseAudio to be 
running. It will look for the monitor device of your current soundcard to 
capture all audio you hear. For simplescreenrecorder, I don't know as I prefer 
OBS for it's extra compositing features and convenience.

Regards,

Daniel

On Wednesday, June 3, 2020 3:30:53 PM CEST tu...@posteo.de wrote:
> Hi,
> 
> To record my screen with audio I installed
> obs and then simplescreenrecoder.
> 
> Recording the video stream more or less works (I cannot record a
> firefox-window and need to record the full screen).
> 
> But recording the audio from the source which will be replayed
> by firefox only give me a stuttering sinus tone.
> 
> According to different tutorials I watched the recording of
> a gameplay works with video/audio which exactly mine setup.
> 
> Interestingly I cannot find the regarding options of both
> screen recorders any more (the tutorials refer to older versions
> of the recorders).
> 
> How can I record video and audio from the played source nonetheless?
> 
> Cheers!
> Meino







Re: [gentoo-user] Pure Data (Pd) can't access ALSA device

2017-09-22 Thread Daniel Sonck
This sounds pretty normal to me. ALSA isn't really suited for simultaneous 
audio access. In general with ALSA you have only one program that can use 
audio at a time, or you use the mixer module from ALSA. I assume a program 
running on the background has claimed ALSA already for certain reasons. 

If you run PulseAudio (which is pretty standard on a regular desktop), this 
one will be the cullprit. Usually the jack tools are smart enough to suspend 
pulseaudio. You can in fact run puredata through the pasuspend script which 
suspends pulseaudio so ALSA is free again.

What I recommend (which you already tried) is using JACK. JACK will take 
ownership of your ALSA device, and gives you a capable routing system allowing 
you to hook up more than just PureData to your audio card. Optionally routing 
it to other software. In addition, it's possible to compile pulseaudio with 
jack support which means you can in fact have regular (non-audio) apps work 
together with jack, which is what I sometimes use: Set up my audio studio 
setup, while still having pulseaudio around for stuff like browsers and video 
players. If I suddenly have a creative spark, I have my studio ready to play 
with. When I'm done, browsers still work with sound

Daniel

On vrijdag 22 september 2017 18:23:10 CEST Lasse Pouru wrote:
> I can't get Pure Data to work with ALSA. It detects my sound card, but
> whenever I try to turn on the audio I get the error:
> 
> ALSA output error (snd_pcm_open): Device or resource busy.
> 
> I've tried both using the ebuild from the audio-overlay and compiling
> from the source on the Pd website, both behave the same. I've read that
> Pd deals with ALSA differently than most other programs, but haven't
> found an explanation how. I did get it to work with JACK.
> 
> - Lasse