Re: [Gajim-devel] Fallback to OSS when no soundplayer found
Am 24.05.2011 um 19:45 schrieb Zhihao Yuan: I'm not sure whether you understand what Gajim does. If your audio player (the one only knows OSS) is running, gajim can not open the OSS device. Exactly, so it opens the device for 3 - 4 seconds and I want to play an audio file. My audio player fails to play the next file and errors out. So each time that happens, I have to restart playback. Then show me your experience. Don't imaging. Ever used NetBSD, where you have no kernel mixing, or OpenBSD without aucat? It happens, it's annoying. Even worse (and I haven't looked if your patch does that): Wait for the audio device and play the sound. It happend to me already that after I quit mplayer which was playing a movie I got all the event sounds sequentially, so it was playing notification sounds for a few minutes after quitting mplayer… You know what? Busy soundcard is busy soundcard. That's not anyone but the stupid GNU believers' fault! 1. Do not complain if you do no meet the problem (actually, it's pretty hard to reproduce); 2. Complain with GNU's philosophy, not me. Now you're starting to talk bullshit as GNU has exactly nothing to do with OSS. And it has even less to do with the sound systems on BSDs. Can you please stop ignoring the problem just for the sake of having your patch applied? Either fix the problem (i.e. make it optional) or don't, but stop making up imaginary arguments like it's GNU's fault even though they have exactly 0 involvement with it. -- Jonathan PGP.sig Description: Signierter Teil der Nachricht ___ Gajim-devel mailing list Gajim-devel@gajim.org http://lists.gajim.org/cgi-bin/listinfo/gajim-devel
Re: [Gajim-devel] Fallback to OSS when no soundplayer found
On Wed, May 25, 2011 at 12:40 PM, Jonathan Schleifer js-ga...@webkeks.org wrote: Am 24.05.2011 um 19:45 schrieb Zhihao Yuan: I'm not sure whether you understand what Gajim does. If your audio player (the one only knows OSS) is running, gajim can not open the OSS device. Exactly, so it opens the device for 3 - 4 seconds and I want to play an audio file. My audio player fails to play the next file and errors out. So each time that happens, I have to restart playback. Which audio player you are using? It looks like it's forking itself to play the next file. Then show me your experience. Don't imaging. Ever used NetBSD, where you have no kernel mixing, or OpenBSD without aucat? It happens, it's annoying. Even worse (and I haven't looked if your patch does that): Wait for the audio device and play the sound. It happend to me already that after I quit mplayer which was playing a movie I got all the event sounds sequentially, so it was playing notification sounds for a few minutes after quitting mplayer… I think the bubbles are shown at the same time. You know what? Busy soundcard is busy soundcard. That's not anyone but the stupid GNU believers' fault! 1. Do not complain if you do no meet the problem (actually, it's pretty hard to reproduce); 2. Complain with GNU's philosophy, not me. Now you're starting to talk bullshit as GNU has exactly nothing to do with OSS. And it has even less to do with the sound systems on BSDs. Can you please stop ignoring the problem just for the sake of having your patch applied? Either fix the problem (i.e. make it optional) or don't, but stop making up imaginary arguments like it's GNU's fault even though they have exactly 0 involvement with it. I need your help on this: can you try to 'import sunaudiodev' in python? If you can, show me the result of 'sunaudiodev.open('wb').getinfo()'. Since I don't have a NetBSD/OpenBSD box. -- Jonathan -- Zhihao Yuan The best way to predict the future is to invent it. ___ Gajim-devel mailing list Gajim-devel@gajim.org http://lists.gajim.org/cgi-bin/listinfo/gajim-devel
Re: [Gajim-devel] Fallback to OSS when no soundplayer found
On Mon, May 23, 2011 at 8:02 AM, Jonathan Schleifer js-ga...@webkeks.org wrote: Am 12.04.2011 um 10:40 schrieb Zhihao Yuan: This is only on when there is no soundplayer (e.g., aplay, ossplay, esdplay...) found by gajim. Whenever you have one of them, my patch won't be executed. When I have no soundplayer installed, it still might happen that I have other applications installed that might want to use sound, right? So it is an issue if Gajim opens the sound device and doesn't even let me disable that. -- Jonathan If you did not try this version, then don't argue this. gajim does not own OSS device during the whole session. If the device is in use, gajim does not plays sound; if the device is not in use, gajim only opens the device for 1 or 2 seconds. -- Zhihao Yuan The best way to predict the future is to invent it. ___ Gajim-devel mailing list Gajim-devel@gajim.org http://lists.gajim.org/cgi-bin/listinfo/gajim-devel
Re: [Gajim-devel] Fallback to OSS when no soundplayer found
Am 23.05.2011 um 21:52 schrieb Zhihao Yuan: if the device is not in use, gajim only opens the device for 1 or 2 seconds. Which is *EXACTLY* the problem. If I start my movie player and someone sends me a message, I don't have any audio. Depending on how long the sounds is (4 seconds are normal due to fade out), that's quite a long time for a single message. Having enabled sound for people signing on, I'm pretty much screwed if I ever want to use my soudcard for something besides Gajim … So no, if there is no sound player that allows playing sounds with mixing, Gajim should not play any sounds. -- Jonathan PGP.sig Description: Signierter Teil der Nachricht ___ Gajim-devel mailing list Gajim-devel@gajim.org http://lists.gajim.org/cgi-bin/listinfo/gajim-devel
Re: [Gajim-devel] Fallback to OSS when no soundplayer found
On 04/11/2011 05:55 PM, Zhihao Yuan wrote: Hi, Maybe for a Linux user, aplay is always available; but for many FreeBSD users like me, we don't have any soundplay (even ossplay) installed by default. Our own oss implementation is much better than 4Front's, and we don't use esound or arts. This patch make use of wave and ossaudiodev which where built into python, and it deal with little endian wav sound. I see 2 problems with that: 1/ it's blocking, so playing a sound blocks UI. We need to run that in a thread 2/ What happens if you try to play 2 sounds at the same time? (2 contacts connects at the same time) -- Yann ___ Gajim-devel mailing list Gajim-devel@gajim.org http://lists.gajim.org/cgi-bin/listinfo/gajim-devel