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.



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.


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