summaryrefslogtreecommitdiffstats
path: root/audio/waveplay/files/patch-waveplay.c
blob: ad6188db85f6cf633cccf6375de42cf6c7a71d83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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);
OpenPOWER on IntegriCloud