diff options
author | itetcu <itetcu@FreeBSD.org> | 2006-06-09 05:53:58 +0000 |
---|---|---|
committer | itetcu <itetcu@FreeBSD.org> | 2006-06-09 05:53:58 +0000 |
commit | 492a9253a3e8a3b0d9378e5de645a496de02b694 (patch) | |
tree | 36c0bcc81bb5ad80c10dd6816efd2a70910d6198 | |
parent | 4b10ebb0944fb9ae37846fbfe87aefd862c291c3 (diff) | |
download | FreeBSD-ports-492a9253a3e8a3b0d9378e5de645a496de02b694.zip FreeBSD-ports-492a9253a3e8a3b0d9378e5de645a496de02b694.tar.gz |
Let waveplay display something on systems without sound device or wrong device
passed via -f.
PR: ports/98638
Submitted by: maintainer
Approved by: lawrance (mentor, implict)
-rw-r--r-- | audio/waveplay/Makefile | 3 | ||||
-rw-r--r-- | audio/waveplay/files/patch-waveplay.c | 24 |
2 files changed, 26 insertions, 1 deletions
diff --git a/audio/waveplay/Makefile b/audio/waveplay/Makefile index 0ac6608..fd5102c 100644 --- a/audio/waveplay/Makefile +++ b/audio/waveplay/Makefile @@ -7,8 +7,9 @@ PORTNAME= waveplay PORTVERSION= 2001.09.24 +PORTREVISION= 1 CATEGORIES= audio -MASTER_SITES= http://sore.totto.to/~ysonoda/FreeBSD/ports/ +MASTER_SITES= http://www.sokohiki.org/~yoshi/FreeBSD/ports/ DISTNAME= waveplay-20010924 MAINTAINER= yshd@na.rim.or.jp diff --git a/audio/waveplay/files/patch-waveplay.c b/audio/waveplay/files/patch-waveplay.c new file mode 100644 index 0000000..ad6188d --- /dev/null +++ b/audio/waveplay/files/patch-waveplay.c @@ -0,0 +1,24 @@ +*** waveplay.c~ Mon Sep 24 16:38:40 2001 +--- waveplay.c Thu Jun 8 00:22:50 2006 +*************** +*** 286,293 **** + int status; + int arg; + +! if ((fd = open(devname, O_WRONLY)) == -1) + return fd; + + /* チャンネル(STEREO or MONAURAL)を設定 */ + arg = (int)(pwf->nChannels); +--- 286,296 ---- + int status; + int arg; + +! if ((fd = open(devname, O_WRONLY)) == -1) { +! fprintf(stderr, "%s - ", devname); +! perror("openDSP"); + return fd; ++ } + + /* チャンネル(STEREO or MONAURAL)を設定 */ + arg = (int)(pwf->nChannels); |