Re: [DNG] Steam, Mumble, Valheim, Alsa and shared audio

2021-08-28 Thread g4sra via Dng

On Saturday, August 28th, 2021 at 12:55 PM, hal  wrote:

> On 8/23/21 19:40, terryc wrote:
> > On Mon, 23 Aug 2021 11:20:27 -0500
> > hal vmli...@charter.net wrote
> 
> > > Thanks, I finally got this working yesterday.
> > Care to share your set up?
> Sure, glad to. I made a pastebin for it here since it would become unreadable 
> posted to the list: https://pastebin.com/XrXtAfPX
> My setup (cat /proc/asound/cards):
> 0) PCH - external speakers/microphone plugged into back of computer
> 1.  Nvidia - I suppose HDMI audio route or something
> 2.  Logitech USB wireless headset with microphone
> -   I use "xhost +" to allow various users below to run gui on my login. I do 
> not have the X TCP socket listening so remote access to X is blocked. Could 
> be another way to do this I dunno.
> -   my /dev/snd/* devices are chmod 660 for the "audio" group and all users 
> are members  

> The problems I have is multiple applications need to access the audio 
> device concurrently but it does not work (until now):
> I have no sound in Firefox so sometimes I need to run Palemoon or Chrome for 
> any kind of multimedia content which needs sound (ffs Firefox.. an FOSS 
> embarrassment). Sort of unrelated but it part of the root cause of all this

Install 'apulse' which are a sort of pulseaudio compatability libraries.

> 

> 2)
> When I run a web browser, I use a launcher script with sudo to run the 
> browser as "firefox" user. This user cannot play audio if another application 
> has alsa "locked"
> 

> 3)
> Sometime I want to play MP3s on my disk. I run VLC with my login account. I 
> cannot hear any music if the firefox user has a web browser open.
> 

> 4)
> When I launch Steam, a launcher script runs sudo to run Steam as "steamuser". 
> If another application has audio device open, there is no sound in Steam 
> games.

This may (and I do mean 'may') be your Desktop not releasing the audio devices, 
google that for your specific desktop to find out how to make it release them 
when you launch steam.

> End result: this mostly works now! Thank you guys/gals! I can share the 
> Logitech headset between Mumble and Steam (Valheim) applications when both 
> are run as the "steamuser". Sharing the same device between DIFFERENT users 
> does NOT work though and maybe not possible I don't know (eg: using Mumble on 
> headset then trying to play Youtube video as "firefox" user).



publickey - g4sra@protonmail.com - 0x42E94623.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] Steam, Mumble, Valheim, Alsa and shared audio

2021-08-28 Thread hal

On 8/23/21 19:40, terryc wrote:

On Mon, 23 Aug 2021 11:20:27 -0500
hal  wrote:






Thanks, I finally got this working yesterday.


Care to share your set up?



Sure, glad to. I made a pastebin for it here since it would become unreadable 
posted to the list: https://pastebin.com/XrXtAfPX

My setup (cat /proc/asound/cards):
0) PCH - external speakers/microphone plugged into back of computer
1) Nvidia - I suppose HDMI audio route or something
2) Logitech USB wireless headset with microphone

* I use "xhost +" to allow various users below to run gui on my login. I do not 
have the X TCP socket listening so remote access to X is blocked. Could be another way to 
do this I dunno.

* my /dev/snd/* devices are chmod 660 for the "audio" group and all users are 
members

The problems I have is multiple applications need to access the audio device 
concurrently but it does not work (until now):

1)
I have no sound in Firefox so sometimes I need to run Palemoon or Chrome for 
any kind of multimedia content which needs sound (ffs Firefox.. an FOSS 
embarrassment). Sort of unrelated but it part of the root cause of all this

2)
When I run a web browser, I use a launcher script with sudo to run the browser as 
"firefox" user. This user cannot play audio if another application has alsa 
"locked"

3)
Sometime I want to play MP3s on my disk. I run VLC with my login account. I 
cannot hear any music if the firefox user has a web browser open.

4)
When I launch Steam, a launcher script runs sudo to run Steam as "steamuser". 
If another application has audio device open, there is no sound in Steam games.


End result: this mostly works now! Thank you guys/gals! I can share the Logitech headset between 
Mumble and Steam (Valheim) applications when both are run as the "steamuser". Sharing the 
same device between DIFFERENT users does NOT work though and maybe not possible I don't know (eg: 
using Mumble on headset then trying to play Youtube video as "firefox" user).


___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] Steam, Mumble, Valheim, Alsa and shared audio

2021-08-23 Thread terryc
On Mon, 23 Aug 2021 11:20:27 -0500
hal  wrote:

> On 7/3/21 09:59, g4sra via Dng wrote:
> > 'dmix' is part of Alsa.
> >   
> >> RT? FM?  
> > Read The Fine Manual ~ go to the Alsa website and read up on the
> > 'dmix' plugin, then google for example Alsa configurations for
> > sharing devices.  
> 
> Thanks, I finally got this working yesterday.

Care to share your set up?

___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] Steam, Mumble, Valheim, Alsa and shared audio

2021-08-23 Thread g4sra via Dng
On Monday, August 23rd, 2021 at 5:20 PM, hal  wrote:
> On 7/3/21 09:59, g4sra via Dng wrote:
> > 'dmix' is part of Alsa.
> > > RT? FM?
> > > Read The Fine Manual ~ go to the Alsa website and read up on the 'dmix' 
> > > plugin, then google for example Alsa configurations for sharing devices.
> Thanks, I finally got this working yesterday.

The ALSA configuration language has got to be the worst that I have ever come 
across.
Treat yourself, you have earned it.

publickey - g4sra@protonmail.com - 0x42E94623.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] Steam, Mumble, Valheim, Alsa and shared audio

2021-08-23 Thread hal



On 7/3/21 09:59, g4sra via Dng wrote:

'dmix' is part of Alsa.


RT? FM?

Read The Fine Manual ~ go to the Alsa website and read up on the 'dmix' plugin, 
then google for example Alsa configurations for sharing devices.


Thanks, I finally got this working yesterday.
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] Steam, Mumble, Valheim, Alsa and shared audio

2021-07-03 Thread g4sra via Dng
> On Sat, 03 Jul 2021 12:21:31 +
> g4sra via Dng dng@lists.dyne.org wrote:
> > <--snip-->
> > Configure Alsa to use the 'dmix' plugin, RT(not so)FM.
> Er dbmix in chimaera. Thanks.
'dmix' is part of Alsa.

> RT? FM?
Read The Fine Manual ~ go to the Alsa website and read up on the 'dmix' plugin, 
then google for example Alsa configurations for sharing devices.

publickey - g4sra@protonmail.com - 0x42E94623.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] Steam, Mumble, Valheim, Alsa and shared audio

2021-07-03 Thread terryc
On Sat, 03 Jul 2021 12:21:31 +
g4sra via Dng  wrote:

> <--snip-->
> Configure Alsa to use the 'dmix' plugin, RT(not so)FM.

Er dbmix in chimaera. Thanks.

RT? FM?

___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] Steam, Mumble, Valheim, Alsa and shared audio

2021-07-03 Thread g4sra via Dng
<--snip-->
Configure Alsa to use the 'dmix' plugin, RT(not so)FM.

publickey - g4sra@protonmail.com - 0x42E94623.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] Steam, Mumble, Valheim, Alsa and shared audio

2021-07-02 Thread terryc
On Fri, 2 Jul 2021 10:58:37 -0500
hal  wrote:

> Hi,
> I have Alsa installed on Beowulf along with Steam and I guess there
> is some Pulse stuff installed too. I also use Mumble to chat during
> game play. When I'm playing Valheim, I can get sound in the game, but
> Mumble doesn't work.
> 
> Is this just a mis-configuration on my end, or does Also not "share"
> the audio between applications?

Well it is the same with my Devuan-chimaera system running only alsa.
So it has to be something in alsa.
I see it in browsers/games/vlc/?
First in best dressed.
Is Valheim native linx or run through lutris or steam which both run
perisisten daemons.
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] Steam, Mumble, Valheim, Alsa and shared audio

2021-07-02 Thread Bastiaan van den Berg
pulseaudio by default doesnt run 'systemwide' and typically only allows
'the user that started it' access to the audio devices (aka, your steam
user)

maybe google about systemwide-pulseaudio , or checkout pipewire perhaps
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng