1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-17 03:25:46 +00:00
freebsd-ports/audio/waveplay/files/patch-waveplay.c
Ion-Mihai Tetcu c5c6185e18 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)
2006-06-09 05:53:58 +00:00

25 lines
593 B
C

*** 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);