I just uploaded 0.21-18 to sourceforge.  I found a bug in the way gwc was connecting to pulse audio and checking for the failure to connect.  This explains the mysterious and erratic messages gwc was generating about not opening the pulse audio every other time, but only under certain circumstances.

Give it a try when you can.


From: Chris Green <cl@isbd.net>
To: "gwc-general@lists.sourceforge.net" <gwc-general@lists.sourceforge.net>
Sent: Monday, January 28, 2013 1:33 AM
Subject: Re: [Gwc-general] Odd error (only every other time I playback) using gwc with pulseaudio on ubuntu 12.10

On Sun, Jan 27, 2013 at 05:30:00PM -0800, jeff welty wrote:
>    Hi Chris,
>    I think John Cirillo was on the right track, sort of.  But I think also
>    the way GWC connect to pulse audio might have a bug.  I hadn't compiled
>    and run gwc for a while, and I just did on my Fedora Core 17 machine,
>    running the gnome window manager.
>    With nothing else running, I have no problems with playback.
>    But, if I crank up a streaming application (like grooveshark), in firefox,
>    I get the same problem you have described, play only works every other
>    time.

Thanks for taking a look.  It's not quite as consistently 'every other
time' as I originally thought and *seems* to act rather differently if I
use the space bar to start and stop rather than the icons.  It still
happens using the space bar though.

I think (among other things) I have Music Player Daemon running on the
same system so there's at least one other pulseaudio client, I might try
stopping it (MPD) to see if that fixes it.

>    If I get a chance, I'll poke around at the pulse audio code for GWC.  When
>    I imlemented it pulse audio was still pretty young so I didn't work too
>    hard at it.  Maybe there is an error return that the code can sense and
>    attempt a reconnect to the audio driver automatically instead of just
>    failing and popping up the error dialog.
>    Thanks for trying GWC and especially thanks for reporting the problem!

If there's anything I can do to help investigate/debug then please ask.

Chris Green

Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
Gwc-general mailing list