diff options
author | barner <barner@FreeBSD.org> | 2005-12-12 07:18:07 +0800 |
---|---|---|
committer | barner <barner@FreeBSD.org> | 2005-12-12 07:18:07 +0800 |
commit | 8971a3b468a285d43902fa29512d41b9466120aa (patch) | |
tree | 406e8a96237f8c38a6386509e09671812d1d66c2 | |
parent | c6d3dee424344401929d5e8aa4c6ab915adfc6c7 (diff) | |
download | freebsd-ports-gnome-8971a3b468a285d43902fa29512d41b9466120aa.tar.gz freebsd-ports-gnome-8971a3b468a285d43902fa29512d41b9466120aa.tar.zst freebsd-ports-gnome-8971a3b468a285d43902fa29512d41b9466120aa.zip |
- Open sound device in read-only mode so it works also on the second, third,...
invokation if the soundcard is in half-duplex mode.
- Bump PORTREVISION
Submitted by: Watanabe Kazuhiro <CQG00620@nifty.ne.jp>
PR: ports/90226
-rw-r--r-- | audio/wavplay/Makefile | 2 | ||||
-rw-r--r-- | audio/wavplay/files/patch-af | 53 |
2 files changed, 31 insertions, 24 deletions
diff --git a/audio/wavplay/Makefile b/audio/wavplay/Makefile index 308aa50b82b0..4e5b0ff9bc9f 100644 --- a/audio/wavplay/Makefile +++ b/audio/wavplay/Makefile @@ -7,7 +7,7 @@ PORTNAME= wavplay PORTVERSION= 1.4 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= audio MASTER_SITES= ${MASTER_SITE_SUNSITE} MASTER_SITE_SUBDIR= apps/sound/players diff --git a/audio/wavplay/files/patch-af b/audio/wavplay/files/patch-af index 84ada821a3b6..6cb5bd7940a3 100644 --- a/audio/wavplay/files/patch-af +++ b/audio/wavplay/files/patch-af @@ -1,23 +1,30 @@ -*** recplay.c.orig Sat Jan 15 12:56:46 2000 ---- recplay.c Sat Jan 15 13:16:42 2000 -*************** -*** 52,63 **** ---- 52,69 ---- - #include <stdio.h> - #include <stdarg.h> - #include <stdlib.h> -+ #ifndef FREEBSD - #include <malloc.h> -+ #endif - #include <string.h> - #include <fcntl.h> - #include <errno.h> - #include <sys/stat.h> -+ #ifndef FREEBSD - #include <linux/soundcard.h> -+ #else -+ #include <sys/soundcard.h> -+ #endif - #include "wavplay.h" - #include "server.h" - +--- recplay.c.orig Sat Dec 4 09:06:42 1999 ++++ recplay.c Sun Dec 11 12:56:34 2005 +@@ -52,12 +52,18 @@ + #include <stdio.h> + #include <stdarg.h> + #include <stdlib.h> ++#ifndef FREEBSD + #include <malloc.h> ++#endif + #include <string.h> + #include <fcntl.h> + #include <errno.h> + #include <sys/stat.h> ++#ifndef FREEBSD + #include <linux/soundcard.h> ++#else ++#include <sys/soundcard.h> ++#endif + #include "wavplay.h" + #include "server.h" + +@@ -184,7 +190,7 @@ + wfile = svr.wfile; /* And the file is already opened */ + } + +- if ( (dfile = OpenDSP(wfile,O_RDWR,v_erf)) == NULL ) ++ if ( (dfile = OpenDSP(wfile,O_RDONLY,v_erf)) == NULL ) + goto errxit; + + if ( RecordDSP(dfile,wfile,samples,svr_work_proc,v_erf) ) |