Re: how to transmit desktop sound on xenodm.

2023-03-22 Thread Edward Ahlsen-Girard
Subject:

  Re: how to transmit desktop sound on xenodm.  From: Jan Stary   Date: 2023-03-21 18:27:19  Message-ID:   
ZBn3B33q/zIDg/lR () www ! stare ! cz  [Download RAW   message   or   body  ]  
  On Mar 21 16:56:51, openbsd_s...@protonmail.com wrote:
  > How to convert "sndiod data stream" to "RTP(rtmp/rtsp) data stream".
  > mplayer and vlc can recive the "RTP(rtmp/rtsp) data stream".
  
  "sndio data stream" is linear PCM audio data.
  That can be played in any audio player out there.
  Why do you want to convert it to a RTP stream first?
  
  > If OpenBSD packages have "module-sndio", it will same too... 
  > I know, OpenBSD ports and packages "omit the any functions".
  > I understood "If I can use the any useful factions. it is so lucky.".
  
  I cannot quite parse your sentences.

I think the original question might have better phrased as: How do I
forward sound and X from OpenBSD to Windows? Leaving particular tools out
of it. The natural tendency to include a tool that solves part of the
problem rather than restate the problem /de novo/ can bite us. --Ed
Ahlsen-Girard


Re: how to transmit desktop sound on xenodm.

2023-03-21 Thread Jan Stary
On Mar 21 16:56:51, openbsd_s...@protonmail.com wrote:
> How to convert "sndiod data stream" to "RTP(rtmp/rtsp) data stream".
> mplayer and vlc can recive the "RTP(rtmp/rtsp) data stream".

"sndio data stream" is linear PCM audio data.
That can be played in any audio player out there.
Why do you want to convert it to a RTP stream first?

> If OpenBSD packages have "module-sndio", it will same too... 
> I know, OpenBSD ports and packages "omit the any functions".
> I understood "If I can use the any useful factions. it is so lucky.".

I cannot quite parse your sentences.



Re: how to transmit desktop sound on xenodm.

2023-03-21 Thread openbsd_send
Thanks a lot for reply.

Now I want to know.
How to convert "sndiod data stream" to "RTP(rtmp/rtsp) data stream".
mplayer and vlc can recive the "RTP(rtmp/rtsp) data stream".
it will be so useful.(and so excited)

And,recently I get to know "module-sndio".(code like this)
"load-module module-sndio device="snd@hostname_of_my_rpi/0" record=false 
playback=true"
probably, these behavior will get "waiting the sndiod data stream on 
pulseaudio" on Windows.
If OpenBSD packages have "module-sndio", it will same too... 


I know, OpenBSD ports and packages "omit the any functions".
I accept it for the "OpenBSD's security policies".
I understood "If I can use the any useful factions. it is so lucky.".
Thanks a lot "OpenBSD maintainer".

I just ask any questions. not complaints.

best regards.



--- Original Message ---
On Monday, March 20th, 2023 at 9:56 AM, Alexandre Ratchov  
wrote:


> On Mon, Mar 20, 2023 at 10:46:27AM +0100, Omar Polo wrote:
> 
> > On 2023/03/19 18:11:29 +, openbsd_send openbsd_s...@protonmail.com 
> > wrote:
> > 
> > > Dear everyone.
> > > I have any Questions for sndiod and pulseaudio.
> > > 
> > > I tried [OpenBSD Remote] to [Windows Local]...
> > > but, I was never to get success...
> > > how can i do it...
> > > 
> > > I am using X11VNC by Xvfb...
> > > I want to get Desktop sound...
> > > 
> > > have any ideas?
> > 
> > I might be wrong but firefox shouldn't be using pulseaudio on OpenBSD,
> > so tunnelling it doesn't do anything.
> > 
> > I'm also not sure you're doing the sndiod remote audio thingy
> > correctly.
> > 
> > (see https://www.openbsd.org/faq/faq13.html#audionet)
> > 
> > You should be running sndiod with the -L- flag on the system where you
> > want to audio to be played (i.e. windows in your case -- don't know if
> > there is a port of sndio for it or if it could work with the linux
> > subsystem) and run
> > 
> > $ AUDIODEVICE=snd@192.168.2.10/0 firefox
> > 
> > on OpenBSD so that the audio is sent thru your lan and being played on
> > your Windows machine.
> > 
> > Unfortunately I don't have the slightest idea whether sndio runs under
> > Windows; I've only did something like that with a rpi3 running linux
> > and it worked fine :)
> 
> 
> I confirm, there's no windows port of libsndio.



Re: how to transmit desktop sound on xenodm.

2023-03-21 Thread Omar Polo
On 2023/03/21 05:41:37 +, openbsd_send  wrote:
> Thanks for Replay
> 
> I think "I have any miss understanding for sndiod with -L- flag" correct ?

Yes, I think you got it backward on your previous mail; it's easy to
confuse one end for the other in these cases ;-)

> and, pulseaudio "native-protocol-tcp or RTP" doesn't work on The OpenBSD ?

I don't see any reason why it shouldn't work.  My point is that
pulseaudio itself is *not used* on most stuff you'll find on OpenBSD.

OpenBSD has its own audio stack and most programs (including the
majority of the music/video players and web browsers in ports) use
sndio.  So, configuring the forwarding at the pulseaudio level doesn't
achieve anything since firefox is not using it in the first place.

> [OpenBSD remote: 192.168.2.5]
> ## x11vnc with fvwm runnning on Xvfb by xenodm
> ## and could browsing the internet by firefox-esr
> ## if transmit sound to [*BSD or Linux LOCAL:192.168.2.10]
> ## just do it...these command.
> AUDIODEVICE=snd@192.168.2.10/0 firefox-esr
> 
> [*BSD or Linux LOCAL:192.168.2.10]
> ## waiting the sound data by the sndiod
> ## just do it...these command.
> sndiod -L-
> 
> these are correct?

Yes, it looks correct.  Depending on your workflow you may want to
export AUDIODEVICE from ~/.xsession or even set things up so it's
always defined for you user in /etc/login.conf

> I know "windows doesn't have sndiod ports and doesn't work sndiod.".
> Already I tried pulseaudio running on FreeBSD and Linux (include in Android, 
> Raspberty PI) with Windows.It could get a sound by pulseaudio...

Yes, that's because on FreeBSD and Linux it is more usual to have
pulseaudio (or I guess pipewire now?) running.  OpenBSD instead tends
to use sndio, by default at least.

> pulseaudio is transmit the sound data. between the *BSD and Linux or 
> Windows...
> I think "OpenBSD could too."...
> and /etc/pulse/default.pa have a any modules by install the packages on 
> OpenBSD...

I guess that it should work on OpenBSD too, but the majority of the
programs are not using pulseaudio.  I *guess* that you can configure
some programs to use pulseaudio if you really must...

(no idea how to do that however, I tend to avoid pulseaudio if
possible ;-)

> Almost always I use the OpenBSD...
> a few time use the Linux or Windows for somebody's tasks(include in "connect 
> the my machine by VNC")...
> And "Any time need a sound."...
> 
> I want to any ideas...

Well, on FreeBSD and some Linux distro you can install and run sndiod
from their package managers.  That leaves out Windows though.  Maybe
it could work via the linux subsystem thingy (but it's just a guess --
I don't have any Windows machine.)



how to transmit desktop sound on xenodm.

2023-03-20 Thread openbsd_send
Thanks for Replay

I think "I have any miss understanding for sndiod with -L- flag" correct ?
and, pulseaudio "native-protocol-tcp or RTP" doesn't work on The OpenBSD ?

[OpenBSD remote: 192.168.2.5]
## x11vnc with fvwm runnning on Xvfb by xenodm
## and could browsing the internet by firefox-esr
## if transmit sound to [*BSD or Linux LOCAL:192.168.2.10]
## just do it...these command.
AUDIODEVICE=snd@192.168.2.10/0 firefox-esr

[*BSD or Linux LOCAL:192.168.2.10]
## waiting the sound data by the sndiod
## just do it...these command.
sndiod -L-

these are correct?

I know "windows doesn't have sndiod ports and doesn't work sndiod.".
Already I tried pulseaudio running on FreeBSD and Linux (include in Android, 
Raspberty PI) with Windows.It could get a sound by pulseaudio...

pulseaudio is transmit the sound data. between the *BSD and Linux or Windows...
I think "OpenBSD could too."...
and /etc/pulse/default.pa have a any modules by install the packages on 
OpenBSD...

Almost always I use the OpenBSD...
a few time use the Linux or Windows for somebody's tasks(include in "connect 
the my machine by VNC")...
And "Any time need a sound."...

I want to any ideas...

best regards.


Re: how to transmit desktop sound on xenodm.

2023-03-20 Thread Alexandre Ratchov
On Mon, Mar 20, 2023 at 10:46:27AM +0100, Omar Polo wrote:
> On 2023/03/19 18:11:29 +, openbsd_send  
> wrote:
> > Dear everyone.
> > I have any Questions for sndiod and pulseaudio.
> > 
> > I tried [OpenBSD Remote] to [Windows Local]...
> > but, I was never to get success...
> > how can i do it...
> > 
> > I am using X11VNC by Xvfb...
> > I want to get Desktop sound...
> > 
> > have any ideas?
> 
> I might be wrong but firefox shouldn't be using pulseaudio on OpenBSD,
> so tunnelling it doesn't do anything.
> 
> I'm also not sure you're doing the sndiod remote audio thingy
> correctly.
> 
> (see )
> 
> You should be running sndiod with the -L- flag on the system where you
> want to audio to be played (i.e. windows in your case -- don't know if
> there is a port of sndio for it or if it could work with the linux
> subsystem) and run
> 
>   $ AUDIODEVICE=snd@192.168.2.10/0 firefox
> 
> on OpenBSD so that the audio is sent thru your lan and being played on
> your Windows machine.
> 
> Unfortunately I don't have the slightest idea whether sndio runs under
> Windows; I've only did something like that with a rpi3 running linux
> and it worked fine :)
> 

I confirm, there's no windows port of libsndio.



Re: how to transmit desktop sound on xenodm.

2023-03-20 Thread Omar Polo
On 2023/03/19 18:11:29 +, openbsd_send  wrote:
> Dear everyone.
> I have any Questions for sndiod and pulseaudio.
> 
> I tried [OpenBSD Remote] to [Windows Local]...
> but, I was never to get success...
> how can i do it...
> 
> I am using X11VNC by Xvfb...
> I want to get Desktop sound...
> 
> have any ideas?

I might be wrong but firefox shouldn't be using pulseaudio on OpenBSD,
so tunnelling it doesn't do anything.

I'm also not sure you're doing the sndiod remote audio thingy
correctly.

(see )

You should be running sndiod with the -L- flag on the system where you
want to audio to be played (i.e. windows in your case -- don't know if
there is a port of sndio for it or if it could work with the linux
subsystem) and run

$ AUDIODEVICE=snd@192.168.2.10/0 firefox

on OpenBSD so that the audio is sent thru your lan and being played on
your Windows machine.

Unfortunately I don't have the slightest idea whether sndio runs under
Windows; I've only did something like that with a rpi3 running linux
and it worked fine :)

HTH


--
Please keep replies in the ML



how to transmit desktop sound on xenodm.

2023-03-19 Thread openbsd_send
Dear everyone.
I have any Questions for sndiod and pulseaudio.

I tried [OpenBSD Remote] to [Windows Local]...
but, I was never to get success...
how can i do it...

I am using X11VNC by Xvfb...
I want to get Desktop sound...

have any ideas?

##[OpenBSD Remote:192.168.2.5]
sndiod -L-

mkdir ~/.sndio/
touch ~/.sndio/cookie

pkg_add pulseaudio

cp -pR /etc/pulse/* ~/.pulse/

ed ~/.pulse/default.pa <<_EOF_
/load-module module-native-protocol-tcp
a
load-module module-waveout sink_name=output source_name=input record=0
load-module module-native-protocol-tcp auth-anonymous=1
.
w
q
_EOF_

ed ~/.pulse/daemon.conf <<_EOF_
/exit-idle-time
a
exit-idle-time = -1
.
w
q
_EOF_

ed ~/.pulse/client.conf <<_EOF_
/default-server
a
#default-server = 127.0.0.1
default-server = tcp:localhost
.
w
q
_EOF_

pulseaudio -k
pulseaudio --system

AUDIODEVICE=snd@localhost/0 firefox-esr

[Windows Local:192.168.2.10]
ed pulseaudio-1.1\etc\pulse\default.pa <<_EOF_
/load-module module-native-protocol-tcp
a
load-module module-native-protocol-tcp
.
w
q
_EOF_

ed ~/.pulse/client.conf <<_EOF_
/default-server
a
default-server = tcp:192.168.2.5
.
w
q
_EOF_

pulseaudio -k
pulseaudio -D