Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Which sounds do we need #132

pychess opened this issue Feb 3, 2015 · 3 comments

Which sounds do we need #132

pychess opened this issue Feb 3, 2015 · 3 comments


Copy link

@pychess pychess commented Feb 3, 2015

Original issue 132 reported by lobais 2007-01-03

Many chessclients offer to play a sound when some event happens.

I think the user interface should look like the gnome-sound-properties one,
but the question is which events to support.

The eboard ones:

Opponent Moved

Draw Offered

Private Tell

ICS Challenge

Time Running Out

Game Won

Game Lost

Game Started

Observed Game Ended

Move made (Observed Game)

The arena ones:

At a check

At a normal move

At a capture move

When new board is set-up

When won

When lost

At a draw

At the start of Arena

I think the sounds could be played using gstreamer-python, which is a
gnome-dependency, at least from gnome 2.18.

@pychess pychess added the task label Feb 3, 2015
Copy link
Collaborator Author

@pychess pychess commented Feb 3, 2015

Original comment 1. posted by leogregianin 2007-01-31

using python stardart library as this:

import wave, ossaudiodev

wv ='test.wav','rb')
num_ch, samp_width, frmrate, nframes, cptype, cpname = wv.getparams()
fl ="/dev/dsp", "rw")
fl.setparameters(ossaudiodev.AFMT_S16_LE, num_ch, frmrate)

but, will be placed a different sound for each action?

best regards,

Copy link
Collaborator Author

@pychess pychess commented Feb 3, 2015

Original comment 2. posted by lobais 2007-01-31

If you grab the 0.7 branch:
svn checkout pychess
You can take a look at the gui in Preferences -> Preferences -> Sounds. Which is
supposed to be the place to set up different sounds (or no sound) for each action.

Your standard library code looks good. Also in the way that it won't make us depend
on gstreamer. On the other hand it won't be able to play ogg's and stuff.

Perhaps we should test if the user has gstreamer available, and if he doesn't we fail
back to allow only system beep and wav files.

It would be good to take the coding discussion somewhere else though, as this thread
should focus on deciding for which actions it should be possible to assign sounds.

Copy link
Collaborator Author

@pychess pychess commented Feb 3, 2015

Original comment 3. posted by lobais 2007-06-16

I think we'd just go for

A player moves
A player checks

A player captures

Game is set-up
Game is won
Game is lost

Game is drawn

Observed moves
Observed ends

At least for Philidor.

  • changed status to: Fixed

@pychess pychess closed this Feb 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
0 participants