8c5da82528
this baby out in earnest..
16 lines
378 B
C
16 lines
378 B
C
#include <fcntl.h>
|
|
#include "con.h"
|
|
|
|
main(int argc, char *argv[])
|
|
{
|
|
int counter;
|
|
unsigned char buffer[1024];
|
|
|
|
|
|
while ((counter = read(0, buffer, sizeof(buffer))) > 0) {
|
|
translate_bytes(ulaw_linear, buffer, counter); /* now linear */
|
|
translate_bytes(linear_alaw, buffer, counter); /* now alaw */
|
|
counter != write(1, buffer, counter);
|
|
}
|
|
}
|