[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] Pygame audio conflicts with Music Player Daemon
- To: pygame-users@xxxxxxxx
- Subject: [pygame] Pygame audio conflicts with Music Player Daemon
- From: Fixen <fixen.1455@xxxxxxxxx>
- Date: Sun, 08 Nov 2009 03:21:06 -0500
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Sun, 08 Nov 2009 03:21:14 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=BuSYtH7X9a9BDt5W5g2Na6Kb0c4vE2mfjdb8gxT9gLc=; b=gTgoE3VZ53LBo/A6pz6dX3xTqTn4iz25e3OQj2SIbrqeJBZXUKEnamoloQMnCG5Fwi 7pxgDY/8F5Nkhm/Jf2j7R3iClkorSZ+1OGDTq0+zNtXt7RQb28aReP+kC4TVbe71lIF0 bapycn5HNw1VfEcUwJNjhO3Sp14OSKri6JY9Y=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=Bcrhh8mns8sEG74EnTpY409CXGITtGpL7SRAN4WBnwyNU4r+Kn44nsXysDjitRFfoT w9ZsOvHXIBLtCdXHOflAdYLs7La7cgRuoZfOJJ1UsXbw0FSxDnX2HX71kpxfbVzGvMsp GAZ+tMkVMT3+B+yhLO0r41MX6qgTGQC4ArkTQ=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
- User-agent: Thunderbird 2.0.0.23 (X11/20090817)
Hi all,
Just a note to you guys.
I ran your intro example, pulled right from your documentation.
http://www.pygame.org/docs/tut/intro/intro.html
Meanwhile, I play music with the Music Player Daemon (mpd).
Specifically, I use a graphical interface for it called Sonata, which is
written in python. However, I encountered the problem with a
command-line interface (mpc) anyway, so that's irrelevant.
When I start the example program while mpd is playing music and attempt
to close the program, the pygame window will not unload, and the program
will deadlock on pygame.quit(). Once I stop the music, pygame.quit()
will proceed and finish.
The program also gives me this error upon exit, but I believe this is
entirely unrelated:
Traceback (most recent call last):
File "test2.py", line 26, in <module>
screen.fill(black)
pygame.error: display Surface quit
I proceeded to download the pygame source and run its tests, and
encountered the same problem. Execution will freeze at the first test
and will not proceed until I stop the music.
Of course, on the flip side, I cannot start music on mpd while the above
pygame elements are running.
This doesn't happen with other audio applications, such as Rhythmbox,
mplayer, or Exaile. Does anyone have any insight as to how pygame plays
audio that might contribute to this?
System Information:
- Ubuntu 9.10
-- PulseAudio 0.9.19
- Python 2.6.4
- Pygame 1.8.1release-1ubuntu1 (also fails tests in 1.9.1 source)
- mpd 0.15.4
Thanks,
- Fixen