version 1.13, 2009/07/25 08:44:27 |
version 1.14, 2009/07/25 10:52:19 |
|
|
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
*/ |
*/ |
|
|
#include <sys/types.h> |
|
#include <sys/time.h> |
#include <sys/time.h> |
|
#include <sys/types.h> |
|
|
#include <poll.h> |
#include <poll.h> |
|
#include <sndio.h> |
#include <stdio.h> |
#include <stdio.h> |
#include <stdlib.h> |
#include <stdlib.h> |
#include <string.h> |
#include <string.h> |
#include <sndio.h> |
|
|
|
|
#include "aparams.h" |
|
#include "aproc.h" |
#include "conf.h" |
#include "conf.h" |
|
#include "dev.h" |
#include "file.h" |
#include "file.h" |
#include "aproc.h" |
|
#include "aparams.h" |
|
#include "safile.h" |
#include "safile.h" |
#include "dev.h" |
|
|
|
struct safile { |
struct safile { |
struct file file; |
struct file file; |
|
|
} |
} |
|
|
/* |
/* |
* open the device |
* Open the device. |
*/ |
*/ |
struct safile * |
struct safile * |
safile_new(struct fileops *ops, char *path, |
safile_new(struct fileops *ops, char *path, |
|
|
unsigned us; |
unsigned us; |
|
|
if (!(f->file.state & FILE_ROK)) { |
if (!(f->file.state & FILE_ROK)) { |
DPRINTF("file_read: %s: bad state\n", f->file.name); |
DPRINTF("safile_read: %s: bad state\n", f->file.name); |
abort(); |
abort(); |
} |
} |
gettimeofday(&tv0, NULL); |
gettimeofday(&tv0, NULL); |