colbyga / pychess

Automatically exported from code.google.com/p/pychess
GNU General Public License v3.0
0 stars 0 forks source link

Gstreamer problem #284

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. when the game is Human vs Human sound ok, but when the game is Human vs
any chess engine sound problem:

Default Warning: Gstreamer error 'Recurso ocupado ou não disponível.':
gstalsasink.c(622): gst_alsasink_open (): /audiosink-actual-sink-alsa:
Device 'default' is busyGstreamer error 'Recurso ocupado ou não
disponível.': gstalsasink.c(622): gst_alsasink_open ():
/audiosink-actual-sink-alsa:
Device 'default' is busyGstreamer error 'O GStreamer encontrou um erro
geral de fluxo.': gstwavparse.c(1719): gst_wavparse_loop ():
/playbin0/decodebin66/

Changing checkSound() in System/gstreamer.py:

- pass
+ #pass

- #self.player.set_state(gst.STATE_PLAYING)
+ self.player.set_state(gst.STATE_PLAYING)

work fine!

What is the expected output? What do you see instead?
view log

Did you use an installed version of PyChess or did you run in from a
tarball/svn?
svn trunk

Original issue reported on code.google.com by leogregianin@gmail.com on 3 Jan 2008 at 10:34

Attachments:

GoogleCodeExporter commented 9 years ago
Yes, if you reenable the checkSound method, errors like yours will be 
suppressed (and
sound disabled).
However as the method seems to have false positives, it has been disabled.

Can you think of other ways to test this?

Original comment by lobais on 4 Jan 2008 at 1:31

GoogleCodeExporter commented 9 years ago
But when I reenable checkSound method, sound play again.

Original comment by leogregianin@gmail.com on 5 Jan 2008 at 1:54

GoogleCodeExporter commented 9 years ago
I don't understand why it does so, but why not. As long as the emit("error") 
call is
disabled (as it is).

Please commit your change :)

Original comment by lobais on 10 Jan 2008 at 7:01

GoogleCodeExporter commented 9 years ago
thanks!

Original comment by leogregianin@gmail.com on 10 Jan 2008 at 9:59