comparison src/libsst.c @ 438:84b14dcb0985 r21-2-27

Import from CVS: tag r21-2-27
author cvs
date Mon, 13 Aug 2007 11:32:25 +0200
parents 3ecd8885ac67
children 183866b06e0b
comparison
equal deleted inserted replaced
437:e2a4e8b94b82 438:84b14dcb0985
18 #ifdef emacs 18 #ifdef emacs
19 #include <config.h> 19 #include <config.h>
20 #include "lisp.h" 20 #include "lisp.h"
21 #endif 21 #endif
22 22
23 #ifdef STDC_HEADERS
24 #include <stdlib.h> 23 #include <stdlib.h>
25 #endif 24 #include <stdio.h>
25 #include <fcntl.h>
26 26
27 #ifdef HAVE_UNISTD_H 27 #ifdef HAVE_UNISTD_H
28 #include <unistd.h> 28 #include <unistd.h>
29 #endif 29 #endif
30 30
31 #include <stdio.h>
32 #include <fcntl.h>
33 #include "libsst.h" 31 #include "libsst.h"
34 32
35 #define AUDBUF 1024 33 #define AUDBUF 1024
36
37 extern void usleep();
38 34
39 int 35 int
40 sst_open(play_level, record_level) 36 sst_open(play_level, record_level)
41 int play_level, record_level; 37 int play_level, record_level;
42 { 38 {
43 int fd, i, gr, ger, gx; 39 int fd, i, gr, ger, gx;
44 struct audio_ioctl ai; 40 struct audio_ioctl ai;
45 char *getenv(), *ep; 41 char *ep;
46 42
47 fd = open( "/dev/audio", O_RDWR ); 43 fd = open( "/dev/audio", O_RDWR );
48 if ( fd < 0 ) 44 if ( fd < 0 )
49 { 45 {
50 perror( "sst_open: open /dev/audio" ); 46 perror( "sst_open: open /dev/audio" );