diff options
author | Ion-Mihai Tetcu <itetcu@FreeBSD.org> | 2006-06-09 05:53:58 +0000 |
---|---|---|
committer | Ion-Mihai Tetcu <itetcu@FreeBSD.org> | 2006-06-09 05:53:58 +0000 |
commit | c5c6185e186fa74e06e7181415a231e52f66b474 (patch) | |
tree | 6ddc190791d3e92f32e8313683ca921884276b78 /audio/waveplay | |
parent | c15b3117a07ba82068464c234fe23d8ed512a46e (diff) |
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)
Notes
Notes:
svn path=/head/; revision=164881
Diffstat (limited to 'audio/waveplay')
-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 0ac660823c00..fd5102c49d7a 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 000000000000..ad6188db85f6 --- /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); |