diff options
Diffstat (limited to 'audio/waveplay/files/patch-waveplay.c')
-rw-r--r-- | audio/waveplay/files/patch-waveplay.c | 39 |
1 files changed, 15 insertions, 24 deletions
diff --git a/audio/waveplay/files/patch-waveplay.c b/audio/waveplay/files/patch-waveplay.c index ad6188db85f6..d0e16ca6f5e3 100644 --- a/audio/waveplay/files/patch-waveplay.c +++ b/audio/waveplay/files/patch-waveplay.c @@ -1,24 +1,15 @@ -*** 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); +--- waveplay.c.orig 2001-09-24 07:38:40 UTC ++++ waveplay.c +@@ -286,8 +286,11 @@ int openDSP(const char* devname, PWAVEFO + int status; + int arg; + +- if ((fd = open(devname, O_WRONLY)) == -1) ++ if ((fd = open(devname, O_WRONLY)) == -1) { ++ fprintf(stderr, "%s - ", devname); ++ perror("openDSP"); + return fd; ++ } + + /* チャンネル(STEREO or MONAURAL)を設定 */ + arg = (int)(pwf->nChannels); |