version 1.8, 2009/09/19 21:21:36 |
version 1.9, 2009/09/27 11:51:20 |
|
|
* 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 <err.h> |
|
#include <fcntl.h> |
|
#include <stdio.h> |
|
#include <stdlib.h> |
#include <stdlib.h> |
#include <unistd.h> |
|
|
|
#include "conf.h" |
#include "conf.h" |
#include "wav.h" |
#include "wav.h" |
|
|
if (f->rbytes >= 0 && count > f->rbytes) { |
if (f->rbytes >= 0 && count > f->rbytes) { |
count = f->rbytes; /* file->rbytes fits in count */ |
count = f->rbytes; /* file->rbytes fits in count */ |
if (count == 0) { |
if (count == 0) { |
DPRINTFN(2, "wav_read: %s: complete\n", f->pipe.file.name); |
|
file_eof(&f->pipe.file); |
file_eof(&f->pipe.file); |
return 0; |
return 0; |
} |
} |
|
|
if (f->wbytes >= 0 && count > f->wbytes) { |
if (f->wbytes >= 0 && count > f->wbytes) { |
count = f->wbytes; /* wbytes fits in count */ |
count = f->wbytes; /* wbytes fits in count */ |
if (count == 0) { |
if (count == 0) { |
DPRINTFN(2, "wav_write: %s: complete\n", |
|
f->pipe.file.name); |
|
file_hup(&f->pipe.file); |
file_hup(&f->pipe.file); |
return 0; |
return 0; |
} |
} |