On Tue, Jul 7, 2009 at 7:39 AM, sutur wrote:
> I've tried using Brainworkshop on several different machines all
> running Ubuntu-Linux 9.04 and always get the same error after playing
> a few seconds and the application shuts down. Here is what the
> terminal says:
>
> python brainworkshop.pyw
>
> ALSA lib pcm_pulse.c:626:(pulse_prepare) PulseAudio: Unable to create
> stream: Invalid argument
>
> python: pcm_pulse.c:361: pulse_write: Assertion `pcm->stream' failed.
> Aborted
>
> has anyone got any ideas?
Yes, I've seen this before. This is thanks to the messed-up sound
system in Ubuntu*. I find that typically it's because something else
is playing or is ready to play eg. Amarok is running in your taskbar.
Closing those programs out and restarting BW helped me. Another thing
that might help is 'killall pulseaudio && pulseaudio &'.
* I say messed up, because this whole PulseAudio switch in the recent
Ubuntus has caused me nothing but grief. I don't entirely understand
what was wrong with the old ALSA/OSS setup...
- --
gwern
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEAREKAAYFAkpTPvgACgkQvpDo5Pfl1oJ3jgCdHIIjHsQmK48oPChmA2MV2nFF
r80AnierkRLVa+RciHi/AQonXj4C8gkb
=Quaw
-----END PGP SIGNATURE-----