Mercurial > hg > xemacs-beta
comparison src/libsst.c @ 412:697ef44129c6 r21-2-14
Import from CVS: tag r21-2-14
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:20:41 +0200 |
parents | 74fd4e045ea6 |
children |
comparison
equal
deleted
inserted
replaced
411:12e008d41344 | 412:697ef44129c6 |
---|---|
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 | |
23 #include <stdlib.h> | 24 #include <stdlib.h> |
24 #include <stdio.h> | 25 #endif |
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> | |
31 #include "libsst.h" | 33 #include "libsst.h" |
32 | 34 |
33 #define AUDBUF 1024 | 35 #define AUDBUF 1024 |
36 | |
37 extern void usleep(); | |
34 | 38 |
35 int | 39 int |
36 sst_open(play_level, record_level) | 40 sst_open(play_level, record_level) |
37 int play_level, record_level; | 41 int play_level, record_level; |
38 { | 42 { |
39 int fd, i, gr, ger, gx; | 43 int fd, i, gr, ger, gx; |
40 struct audio_ioctl ai; | 44 struct audio_ioctl ai; |
41 char *ep; | 45 char *getenv(), *ep; |
42 | 46 |
43 fd = open( "/dev/audio", O_RDWR ); | 47 fd = open( "/dev/audio", O_RDWR ); |
44 if ( fd < 0 ) | 48 if ( fd < 0 ) |
45 { | 49 { |
46 perror( "sst_open: open /dev/audio" ); | 50 perror( "sst_open: open /dev/audio" ); |