| Issue 54: | No click sound on windows xp (@rev274, PyQt 4.7) | |
| Back to list |
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
Feb 18, 2010
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.
Status:
Started
Labels: OpSys-Windows
Feb 18, 2010
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.
Feb 18, 2010
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.
Feb 18, 2010
I think I like better the one from comment #4
Feb 18, 2010
Committed in r344 and verified to work well on Linux, if it's ok on Windows, you can close the issue.
Feb 19, 2010
(No comment was entered for this change.)
Status:
Verified
|