Discussion:
[pulseaudio-discuss] Using PulseAudio in Windows
Alex Malinovich
2007-08-30 20:33:36 UTC
Permalink
I've been working for a while on getting sounds passed as transparently
back and forth across my network as possible, and recently I decided to
try to get a Linux server running ESD to talk to a PulseAudio server
running on a Windows box (using Xming for the X session).

The whole process is described here:

http://www.the-love-shack.net/2007/08/23/forwarding-esd-played-sounds-to-a-remote-machine/

What I'd like to get is some feedback from some of the PA gurus here on
the Pulse-related stuff in the post. Primarily the second half of the
document (after "Update"). This was the best way that I could find to do
what I wanted, but I keep thinking that there must be a better way, so
I'm open to suggestions. Thanks for any feedback.
--
Alex Malinovich
Support Free Software, delete your Windows partition TODAY!
Encrypted mail preferred. You can get my public key from any of the
pgp.net keyservers. Key ID: A6D24837
Lennart Poettering
2007-09-03 13:49:26 UTC
Permalink
On Thu, 30.08.07 13:33, Alex Malinovich (demonbane at the-love-shack.net) wrote:

Hi!
Post by Alex Malinovich
What I'd like to get is some feedback from some of the PA gurus here on
the Pulse-related stuff in the post. Primarily the second half of the
document (after "Update"). This was the best way that I could find to do
what I wanted, but I keep thinking that there must be a better way, so
I have no experience with running PA on windows. However, reading
through that story I wonder what the point is in configuring
module-waveout twice: once for loading it on-demand ("auto"), and once
for loading it statically?

Why do you load the simple protocol? It's merely a toy.

And if you want to kill PA cleanly, just connect to the CLI port and
issue an "exit" command. Apparently you are loading the CLI protocol
anyway, so this is quite easy.

Hope these comments help!

BTW: pulseaudio.org is a publicly editable Wiki. You might want to
edit it and add a link to your blog story, maybe somehwere under
"Documentation"!

Lennart
--
Lennart Poettering Red Hat, Inc.
lennart [at] poettering [dot] net ICQ# 11060553
http://0pointer.net/lennart/ GnuPG 0x1A015CC4
Alex Malinovich
2007-09-03 19:47:24 UTC
Permalink
Post by Lennart Poettering
Hi!
Post by Alex Malinovich
What I'd like to get is some feedback from some of the PA gurus here on
the Pulse-related stuff in the post. Primarily the second half of the
document (after "Update"). This was the best way that I could find to do
what I wanted, but I keep thinking that there must be a better way, so
I have no experience with running PA on windows. However, reading
through that story I wonder what the point is in configuring
module-waveout twice: once for loading it on-demand ("auto"), and once
for loading it statically?
That was a case of me blindly editing the sample w32 config file without
thinking about what each line does. :) Fixed.
Post by Lennart Poettering
Why do you load the simple protocol? It's merely a toy.
See above. :)
Post by Lennart Poettering
And if you want to kill PA cleanly, just connect to the CLI port and
issue an "exit" command. Apparently you are loading the CLI protocol
anyway, so this is quite easy.
I have been trying to figure out a way to do this cleanly from the
command line (specifically from within a batch file) with no luck.
Windows doesn't come with netcat by default, and while there is a netcat
implementation for Windows I don't want to automate this in a way that
requires any additional software if possible. And as far as I can tell,
there is now way to tell telnet in Windows to connect to a host and
automatically execute a command.

If anyone has any ideas on how to accomplish this in an automated manner
from within a Windows shell please let me know.
Post by Lennart Poettering
BTW: pulseaudio.org is a publicly editable Wiki. You might want to
edit it and add a link to your blog story, maybe somehwere under
"Documentation"!
That's a good idea. I'll add it on there as soon as I get the entry all
cleaned up with your suggested changes. Thanks for the help!
--
Alex Malinovich
Support Free Software, delete your Windows partition TODAY!
Encrypted mail preferred. You can get my public key from any of the
pgp.net keyservers. Key ID: A6D24837
Lennart Poettering
2007-09-03 20:05:29 UTC
Permalink
Post by Alex Malinovich
Post by Lennart Poettering
And if you want to kill PA cleanly, just connect to the CLI port and
issue an "exit" command. Apparently you are loading the CLI protocol
anyway, so this is quite easy.
I have been trying to figure out a way to do this cleanly from the
command line (specifically from within a batch file) with no luck.
Windows doesn't come with netcat by default, and while there is a netcat
implementation for Windows I don't want to automate this in a way that
requires any additional software if possible. And as far as I can tell,
there is now way to tell telnet in Windows to connect to a host and
automatically execute a command.
If anyone has any ideas on how to accomplish this in an automated manner
from within a Windows shell please let me know.
There's always "pactl exit".

Lennart
--
Lennart Poettering Red Hat, Inc.
lennart [at] poettering [dot] net ICQ# 11060553
http://0pointer.net/lennart/ GnuPG 0x1A015CC4
Loading...