My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 54: No click sound on windows xp (@rev274, PyQt 4.7)
  Back to list
Status:  Verified
Owner:  ----
Closed:  Feb 2010


 
Project Member Reported by pierpaol...@gmail.com, Feb 15, 2010
I'm running Marave @rev 274 on Windows XP, PyQt 4.7.
When I set click sound type I can hear the sound, but typing in the editor
makes no sound.

I tried to debug it, looking at the self.beep.play() call in eventFilter
and in setclick. The self.beep object looks the same but it doesn't play
correctly when typing.
Feb 15, 2010
Project Member #1 roberto.alsina
I ĺl take a look at it soon.
Feb 18, 2010
Project Member #2 pierpaol...@gmail.com
It seems that the behavior of MediaObject is such that when playback is finished the
position in the stream is kept. To start another playback you need to seek to the
beginning.

I attached a modified version of main.py (just added one line in eventFilter).
This one works fine on Windows.
main.py
56.6 KB   View   Download
Status: Started
Labels: OpSys-Windows
Feb 18, 2010
Project Member #3 pierpaol...@gmail.com
I improved a bit the code connecting the finished event with a function to seek to
the beginning.

I also removed some print I had used for debugging. Should be clean now.


main.py
56.6 KB   View   Download
Feb 18, 2010
Project Member #4 pierpaol...@gmail.com
This is yet another version.
When you type quickly keys are pressed before the sound ends playing.
In this implementation the sound is stopped and another one is started as soon as you
press a key.
The effect sounds pretty good.

We should decide what kind of behavior we want as clicks and keys cannot be synchronized.
main.py
56.7 KB   View   Download
Feb 18, 2010
Project Member #5 roberto.alsina
I think I like better the one from comment #4
Feb 18, 2010
Project Member #6 roberto.alsina
Committed in r344 and verified to work well on Linux, if it's ok on Windows, you can close 
the issue.
Feb 19, 2010
Project Member #7 pierpaol...@gmail.com
(No comment was entered for this change.)
Status: Verified

Powered by Google Project Hosting