Re: Playing sounds



"Brandon S. Allbery KF8NH" wrote:
....
> Fix esd and send in a patch?  (I disabled sound at home because I was only
> playing around to begin with; I'm just not a "desktop bleeps and bloops"
> type.)
....

Here is a patch that works on my machine, Debian 2.1+
Its a simple programmin oversight....
Now esd blocks when the kernel cannot take the full buffer....

-- 
----------------------------------------------------------------  -o)
Matthijs Melchior                                       Maarssen  /\\
mmelchio@xs4all.nl          +31 346 570616           Netherlands _\_v
---------------------------------------------------------------- ----
--- audio_oss.c-ORG	Wed Mar 15 19:00:49 2000
+++ audio_oss.c	Sat Jun  3 21:18:49 2000
@@ -47,7 +47,7 @@
 
     mode = fcntl(afd, F_GETFL);
     mode &= ~O_NONBLOCK;
-    fcntl(afd, F_SETFL);
+    fcntl(afd, F_SETFL, mode);
 
     /* TODO: check that this is allowable */
     /* set for full duplex operation, if recording */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]