opnsense-ports/audio/waveplay/files/patch-waveplay.c
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

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